Skip to content

Commit

Permalink
update component name
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimondev committed Apr 10, 2024
1 parent 3429d10 commit a61aafc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { Search } from 'lucide-react'

import { Input } from '@/components/ui/input'

type SearcherProps = {
type SectionsSearcherProps = {
setFilterSection: Dispatch<SetStateAction<string>>
}

export function Searcher({ setFilterSection }: SearcherProps) {
export function SectionsSearcher({ setFilterSection }: SectionsSearcherProps) {
return (
<div className='bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 w-full px-3.5'>
<form>
Expand Down
4 changes: 2 additions & 2 deletions src/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import { ContainerTemplates } from '@/components/container-templates'
import { FormGit } from '@/components/form-git'
import { ListSections } from '@/components/list-sections'
import { Searcher } from '@/components/searcher'
import { SectionsSearcher } from '@/components/sections-searcher'
import { TemplatesMobile } from '@/components/templates-mobile'

type SidebarProps = {
Expand Down Expand Up @@ -46,7 +46,7 @@ export function Sidebar({ setFilterSection, customSections, listSectionsFiltered
</TabsContent>
<TabsContent value='custom' className='hidden xl:block'>
<div className='flex flex-col gap-2'>
<Searcher setFilterSection={setFilterSection} />
<SectionsSearcher setFilterSection={setFilterSection} />
<ListSections listSections={listSectionsFiltered} customSections={customSections} />
</div>
</TabsContent>
Expand Down

0 comments on commit a61aafc

Please sign in to comment.