diff --git a/messages/en.json b/messages/en.json index c2983e6..188537d 100644 --- a/messages/en.json +++ b/messages/en.json @@ -56,9 +56,9 @@ "quantityInfo": "{quantity} units available", "locationInfo": "Location: {location}" }, - "dropdown": { + "select": { "filters": "Filters", - "buttonLabel": "Sort results", + "defaultPlaceholder": "Sort results", "popularity": "Popularity", "sortDescending": "Inventory (descending)", "sortAscending": "Inventory (ascending)", diff --git a/messages/no.json b/messages/no.json index 2ad06f4..881053c 100644 --- a/messages/no.json +++ b/messages/no.json @@ -56,9 +56,9 @@ "quantityInfo": "{quantity} stk. på lager", "locationInfo": "Hylleplass: {location}" }, - "dropdown": { + "select": { "filters": "Filtre", - "buttonLabel": "Sorter resultater", + "defaultPlaceholder": "Sorter resultater", "popularity": "Popularitet", "sortDescending": "Lagerbeholdning (synkende)", "sortAscending": "Lagerbeholdning (stigende)", diff --git a/src/app/[locale]/(default)/storage/page.tsx b/src/app/[locale]/(default)/storage/page.tsx index 38afab6..50ceed5 100644 --- a/src/app/[locale]/(default)/storage/page.tsx +++ b/src/app/[locale]/(default)/storage/page.tsx @@ -5,7 +5,6 @@ import Image from 'next/image'; import { createSearchParamsCache, parseAsInteger } from 'nuqs/parsers'; import { PaginationCarousel } from '@/components/layout/PaginationCarousel'; -import { Button } from '@/components/ui/Button'; import { Card, CardContent, @@ -15,15 +14,14 @@ import { CardTitle, } from '@/components/ui/Card'; import { Combobox } from '@/components/ui/Combobox'; -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuSeparator, - DropdownMenuTrigger, -} from '@/components/ui/DropdownMenu'; import { SearchBar } from '@/components/ui/SearchBar'; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from '@/components/ui/Select'; export async function generateMetadata({ params: { locale }, @@ -77,34 +75,36 @@ export default function StoragePage({ ]; const filters = [ - 'dropdown.popularity', - 'dropdown.sortDescending', - 'dropdown.sortAscending', - 'dropdown.name', + 'select.popularity', + 'select.sortDescending', + 'select.sortAscending', + 'select.name', ] as const; return ( <>

{t('title')}

-
- - - - - - - {t('dropdown.filters')} - +
+ +