mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 05:54:44 +00:00
fix(lint): remove unused import in sort-control
This commit is contained in:
@@ -136,6 +136,15 @@ export function FileBrowserToolbar({
|
|||||||
/>
|
/>
|
||||||
</PopoverContent>
|
</PopoverContent>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
|
||||||
|
<Separator orientation="vertical" />
|
||||||
|
<SortControl
|
||||||
|
fields={fields}
|
||||||
|
sort={sort}
|
||||||
|
onSortChange={onSortChange}
|
||||||
|
disabled={isRecentlyDeleted}
|
||||||
|
/>
|
||||||
|
|
||||||
<Separator orientation="vertical" />
|
<Separator orientation="vertical" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
@@ -152,14 +161,6 @@ export function FileBrowserToolbar({
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Separator orientation="vertical" />
|
|
||||||
<SortControl
|
|
||||||
fields={fields}
|
|
||||||
sort={sort}
|
|
||||||
onSortChange={onSortChange}
|
|
||||||
disabled={isRecentlyDeleted}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ export function SearchFilterDialog({
|
|||||||
}}
|
}}
|
||||||
className="text-[11px] font-medium text-destructive hover:text-destructive/80 underline underline-offset-2 transition-colors"
|
className="text-[11px] font-medium text-destructive hover:text-destructive/80 underline underline-offset-2 transition-colors"
|
||||||
>
|
>
|
||||||
Reset All Criteria
|
Reset
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,13 +3,12 @@ import type { SearchSort } from '@/dtos/search'
|
|||||||
import { Button } from '@/ui/components/ui/button'
|
import { Button } from '@/ui/components/ui/button'
|
||||||
import { Popover, PopoverContent, PopoverTrigger } from '@/ui/components/ui/popover'
|
import { Popover, PopoverContent, PopoverTrigger } from '@/ui/components/ui/popover'
|
||||||
import {
|
import {
|
||||||
Select,
|
Select,
|
||||||
SelectContent,
|
SelectContent,
|
||||||
SelectItem,
|
SelectItem,
|
||||||
SelectTrigger,
|
SelectTrigger,
|
||||||
SelectValue,
|
SelectValue,
|
||||||
} from '@/ui/components/ui/select'
|
} from '@/ui/components/ui/select'
|
||||||
import { ArrowDownWideNarrow } from 'lucide-react'
|
|
||||||
|
|
||||||
interface SortControlProps {
|
interface SortControlProps {
|
||||||
fields: MetadataFieldInfo[]
|
fields: MetadataFieldInfo[]
|
||||||
|
|||||||
Reference in New Issue
Block a user