diff --git a/src/ui/components/file-browser/toolbar.tsx b/src/ui/components/file-browser/toolbar.tsx index 890fdbe3..17527085 100644 --- a/src/ui/components/file-browser/toolbar.tsx +++ b/src/ui/components/file-browser/toolbar.tsx @@ -15,7 +15,6 @@ import { Avatar, AvatarFallback } from '../ui/avatar' import { Button } from '../ui/button' import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover' import { Separator } from '../ui/separator' -import { Filter } from 'lucide-react' type FileBrowserToolbarProps = { teamId: string @@ -164,7 +163,6 @@ export function FileBrowserToolbar({ size="sm" className="inline-flex items-center gap-2 px-4 py-2 hover:bg-primary/10 font-semibold rounded-xl cursor-pointer h-8" > - Filter {activeFiltersCount > 0 && ( @@ -173,22 +171,24 @@ export function FileBrowserToolbar({ )} - - { - onFilterChange(newConditions) - onUpdateCollection?.({ - filter: { - ...collection.filter, - conditions: newConditions, - }, - }) - }} - excludeFields={[]} - hidePrefix - /> + + + { + onFilterChange(newConditions) + onUpdateCollection?.({ + filter: { + ...collection.filter, + conditions: newConditions, + }, + }) + }} + excludeFields={[]} + hidePrefix + /> + ) : (