Merged in feat/SW-342-filtering-and-sorting-mobile (pull request #919)

Feat/SW-342 filtering and sorting mobile

* feat(SW-342): add sort and filter on mobile

* Use zustand for state management

* Add count and translations

* Clear filters

* Small fixes

* Fixes


Approved-by: Pontus Dreij
This commit is contained in:
Niclas Edenvin
2024-11-18 14:02:32 +00:00
committed by Joakim Jäderberg
parent 3c181959c2
commit 5fb70866ea
24 changed files with 434 additions and 113 deletions

View File

@@ -0,0 +1,5 @@
import { CategorizedFilters } from "./hotelFilters"
export type FilterAndSortModalProps = {
filters: CategorizedFilters
}

View File

@@ -0,0 +1,6 @@
export type FilterCheckboxProps = {
name: string
id: string
isSelected: boolean
onChange: (filterId: string) => void
}

View File

@@ -6,6 +6,7 @@ export type CategorizedFilters = {
}
export type HotelFiltersProps = {
filters: CategorizedFilters
className?: string
}
export type Filter = {

View File

@@ -9,3 +9,7 @@ export type SortItem = {
label: string
value: string
}
export type HotelSorterProps = {
discreet?: boolean
}