diff --git a/web/components/routes/link/header.tsx b/web/components/routes/link/header.tsx index 339376ef..fd44fb32 100644 --- a/web/components/routes/link/header.tsx +++ b/web/components/routes/link/header.tsx @@ -91,15 +91,21 @@ const TabItem = ({ url, label, isActive, onClick }: TabItemProps) => { const FilterAndSort = () => { const [sort, setSort] = useAtom(linkSortAtom) + const [sortOpen, setSortOpen] = React.useState(false) const getFilterText = () => { return sort.charAt(0).toUpperCase() + sort.slice(1) } + const handleSortChange = (value: string) => { + setSort(value) + setSortOpen(false) + } + return (
- +