feat: adjust select rate ui to latest design

This commit is contained in:
Simon Emanuelsson
2025-02-17 15:10:48 +01:00
parent 2c72957dc6
commit 4c23700d52
76 changed files with 819 additions and 654 deletions
@@ -1,4 +1,4 @@
import { Hotel } from "@/types/hotel"
import type { Hotel } from "@/types/hotel"
export type CategorizedFilters = {
facilityFilters: Hotel["detailedFacilities"]
@@ -9,15 +9,6 @@ export type HotelFiltersProps = {
className?: string
}
export type Filter = {
name: string
id: number
public: boolean
sortOrder: number
filter?: string
icon: string
}
export type HotelFilterModalProps = {
filters: CategorizedFilters
}
@@ -1,11 +1,10 @@
import type { z } from "zod"
import type { Coordinates } from "@/types/components/maps/coordinates"
import type { Location } from "@/types/trpc/routers/hotel/locations"
import type { Amenities } from "@/types/hotel"
import type { imageSchema } from "@/server/routers/hotels/schemas/image"
import type { Child } from "../selectRate/selectRate"
import type { HotelData } from "./hotelCardListingProps"
import type { CategorizedFilters, Filter } from "./hotelFilters"
import type { CategorizedFilters } from "./hotelFilters"
import type {
AlternativeHotelsSearchParams,
SelectHotelSearchParams,
@@ -39,7 +38,7 @@ export type HotelPin = {
imageSizes: ImageSizes
metaData: ImageMetaData
}[]
amenities: Filter[]
amenities: Amenities
ratings: number | null
operaId: string
facilityIds: number[]
@@ -2,4 +2,5 @@ export type ToggleSidePeekProps = {
hotelId: string
roomTypeCode?: string
intent?: "text" | "textInverted"
title?: string
}
-2
View File
@@ -1,7 +1,5 @@
import type { ImageProps as NextImageProps } from "next/image"
import type { ImageVaultAsset } from "./imageVault"
export interface FocalPoint {
x: number
y: number