feat(BOOK-55): Listen to SEO filter slugs when navigating to such page
Approved-by: Chuma Mcphoy (We Ahead) Approved-by: Matilda Landström
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { DestinationCityListItem } from "@scandic-hotels/trpc/types/destinationCityPage"
|
||||
import type { SEOFilters } from "@scandic-hotels/trpc/types/destinationsData"
|
||||
import type {
|
||||
CategorizedHotelFilters,
|
||||
HotelListingHotelData,
|
||||
@@ -8,7 +9,8 @@ import type {
|
||||
export interface DestinationDataProviderProps extends React.PropsWithChildren {
|
||||
allHotels: HotelListingHotelData[]
|
||||
allCities?: DestinationCityListItem[]
|
||||
allFilters: CategorizedHotelFilters
|
||||
hotelFilters: CategorizedHotelFilters
|
||||
seoFilters: SEOFilters | null
|
||||
filterFromUrl?: string
|
||||
sortItems: HotelSortItem[]
|
||||
pathname: string
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { DestinationCityListItem } from "@scandic-hotels/trpc/types/destinationCityPage"
|
||||
import type { SEOFilters } from "@scandic-hotels/trpc/types/destinationsData"
|
||||
import type {
|
||||
CategorizedHotelFilters,
|
||||
HotelFilter,
|
||||
@@ -42,10 +43,9 @@ export interface DestinationDataState {
|
||||
}
|
||||
|
||||
export interface InitialState
|
||||
extends Pick<
|
||||
DestinationDataState,
|
||||
"allHotels" | "allCities" | "sortItems" | "allFilters"
|
||||
> {
|
||||
extends Pick<DestinationDataState, "allHotels" | "allCities" | "sortItems"> {
|
||||
pathname: string
|
||||
searchParams: ReadonlyURLSearchParams
|
||||
seoFilters: SEOFilters | null
|
||||
hotelFilters: CategorizedHotelFilters
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user