Merged in feat/SW-1451-country-page-sorting (pull request #1426)
Feat/SW-1451 country page filtering and sorting * feat(SW-1451): implemented sorting and filtering on country pages * feat(SW-1451): Renamed hotel-data to destination-data because of its multi-purpose use * feat(SW-1451): Now filtering after change of url instead of inside the store after submit Approved-by: Fredrik Thorsson
This commit is contained in:
@@ -7,6 +7,7 @@ import { getDescription, getImage, getTitle } from "./utils"
|
||||
|
||||
import type { Metadata } from "next"
|
||||
|
||||
import { Country } from "@/types/enums/country"
|
||||
import { RTETypeEnum } from "@/types/rte/enums"
|
||||
|
||||
const metaDataJsonSchema = z.object({
|
||||
@@ -70,6 +71,7 @@ export const rawMetadataSchema = z.object({
|
||||
city_poland: z.string().optional().nullable(),
|
||||
city_norway: z.string().optional().nullable(),
|
||||
city_sweden: z.string().optional().nullable(),
|
||||
country: z.nativeEnum(Country).optional().nullable(),
|
||||
})
|
||||
.optional()
|
||||
.nullable(),
|
||||
@@ -89,9 +91,9 @@ export const rawMetadataSchema = z.object({
|
||||
.pick({ name: true, address: true, hotelContent: true, gallery: true })
|
||||
.optional()
|
||||
.nullable(),
|
||||
cityName: z.string().optional().nullable(),
|
||||
cityFilter: z.string().optional().nullable(),
|
||||
cityFilterType: z.enum(["facility", "surroundings"]).optional().nullable(),
|
||||
location: z.string().optional().nullable(),
|
||||
filter: z.string().optional().nullable(),
|
||||
filterType: z.enum(["facility", "surroundings"]).optional().nullable(),
|
||||
system: systemSchema,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user