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:
committed by
Joakim Jäderberg
parent
3c181959c2
commit
5fb70866ea
@@ -0,0 +1,5 @@
|
||||
import { CategorizedFilters } from "./hotelFilters"
|
||||
|
||||
export type FilterAndSortModalProps = {
|
||||
filters: CategorizedFilters
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export type FilterCheckboxProps = {
|
||||
name: string
|
||||
id: string
|
||||
isSelected: boolean
|
||||
onChange: (filterId: string) => void
|
||||
}
|
||||
@@ -6,6 +6,7 @@ export type CategorizedFilters = {
|
||||
}
|
||||
export type HotelFiltersProps = {
|
||||
filters: CategorizedFilters
|
||||
className?: string
|
||||
}
|
||||
|
||||
export type Filter = {
|
||||
|
||||
@@ -9,3 +9,7 @@ export type SortItem = {
|
||||
label: string
|
||||
value: string
|
||||
}
|
||||
|
||||
export type HotelSorterProps = {
|
||||
discreet?: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user