Skip to content

Commit

Permalink
Fix: Searchbar-react-bug (#2161)
Browse files Browse the repository at this point in the history
Fix/Searchbar-react-bug-#2139

fixed
  • Loading branch information
Luckydhingra authored Nov 1, 2023
1 parent 6111366 commit d0af5bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions components/Searchbar/Searchbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const Searchbar: React.FC<SearchbarProps> = ({
type="text"
id="simple-search"
name="simple-search"
className="block p-2.5 w-full bg-transparent text-sm text-dark dark:text-text-primary border border-dashed border-gray-text focus:border-theme-secondary dark:focus:border-theme-primary dark:focus:ring-theme-primary focus:ring-theme-secondary dark:placeholder-gray-text outline-none transition-all ease-in-out duration-300 rounded-lg capitalize"
className="block p-2.5 w-full bg-transparent text-sm text-dark dark:text-text-primary border border-dashed border-gray-text focus:border-theme-secondary dark:focus:border-theme-primary dark:focus:ring-theme-primary focus:ring-theme-secondary dark:placeholder-gray-text outline-none transition-all ease-in-out duration-300 rounded-lg "
placeholder="Quick search..."
value={searchQuery}
onChange={handleSearchChange}
Expand Down Expand Up @@ -133,7 +133,6 @@ const getFilteredSuggestions = (query: string) => {
if (normalisedQuery.length === 0) {
return []
}

const suggestions = searchOptions.filter((option) =>
option.name.toLowerCase().includes(normalisedQuery)
)
Expand Down
1 change: 1 addition & 0 deletions database/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const sidebarData: ISidebar[] = [
{ name: 'images', url: '/images', resources: DB.images },
{ name: 'fonts', url: '/fonts', resources: DB.fonts },
{ name: 'colors', url: '/colors', resources: DB.colors },
{ name: 'react', url: '/react', resources: DB.react },
{
name: 'illustrations',
url: '/illustrations',
Expand Down

1 comment on commit d0af5bb

@vercel
Copy link

@vercel vercel bot commented on d0af5bb Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.