We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96923b commit 1ded13eCopy full SHA for 1ded13e
components/PostsSearchBar/PostsSearchBar.tsx
@@ -24,17 +24,17 @@ function PostsSearchBar({ posts }: Props): JSX.Element {
24
setOptions(
25
value
26
? posts
27
- .filter(({ title }) =>
28
- title.toLowerCase().includes(value.toLowerCase()),
29
- )
30
- .map(({ slug, title }) => ({
31
- value: title,
32
- label: (
33
- <div>
34
- <Link href={`/post/${slug}`}>{title}</Link>
35
- </div>
36
- ),
37
- }))
+ .filter(({ title }) =>
+ title.toLowerCase().includes(value.toLowerCase()),
+ )
+ .map(({ slug, title }) => ({
+ value: title,
+ label: (
+ <div>
+ <Link href={`/post/${slug}`}>{title}</Link>
+ </div>
+ ),
+ }))
38
: [],
39
)
40
},
0 commit comments