feat: css and syntax changes

This commit is contained in:
Fredrik Thorsson
2024-08-06 09:44:45 +02:00
parent d88de5424b
commit c7bef7d1cf
5 changed files with 10 additions and 13 deletions

View File

@@ -468,7 +468,7 @@ export const getHotelDataSchema = z.object({
included: z.array(RoomSchema).optional(),
})
const Rate = z.object({
const rate = z.object({
id: z.number(),
name: z.string(),
description: z.string(),
@@ -478,11 +478,11 @@ const Rate = z.object({
imageSrc: z.string(),
})
export const getRatesSchema = z.array(Rate)
export const getRatesSchema = z.array(rate)
export type Rate = z.infer<typeof Rate>
export type Rate = z.infer<typeof rate>
const HotelFilter = z.object({
const hotelFilter = z.object({
filter: z.object({
roomFacilities: z.array(z.string()),
hotelFacilities: z.array(z.string()),
@@ -490,5 +490,5 @@ const HotelFilter = z.object({
}),
})
export const getFiltersSchema = z.array(HotelFilter)
export type HotelFilter = z.infer<typeof HotelFilter>
export const getFiltersSchema = z.array(hotelFilter)
export type HotelFilter = z.infer<typeof hotelFilter>