Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/loading-rooms-separately
This commit is contained in:
@@ -1,14 +1,35 @@
|
||||
import {
|
||||
Reward,
|
||||
SurpriseReward,
|
||||
} from "@/server/routers/contentstack/reward/output"
|
||||
import { Reward } from "@/server/routers/contentstack/reward/output"
|
||||
|
||||
export interface Surprise extends Reward {
|
||||
endsAt: SurpriseReward["endsAt"]
|
||||
id: SurpriseReward["id"]
|
||||
coupons: { couponCode?: string; expiresAt?: string }[]
|
||||
id?: string
|
||||
}
|
||||
|
||||
export interface SurprisesProps {
|
||||
surprises: Surprise[]
|
||||
membershipNumber?: string
|
||||
}
|
||||
|
||||
export interface NavigationProps {
|
||||
selectedSurprise: number
|
||||
totalSurprises: number
|
||||
showSurprise: (direction: number) => void
|
||||
}
|
||||
|
||||
export interface CardProps extends React.PropsWithChildren {
|
||||
title?: string
|
||||
}
|
||||
|
||||
export interface InitialProps {
|
||||
totalSurprises: number
|
||||
onOpen: VoidFunction
|
||||
}
|
||||
|
||||
export interface SlideProps {
|
||||
surprise: Surprise
|
||||
membershipNumber?: string
|
||||
}
|
||||
|
||||
export interface HeaderProps extends React.PropsWithChildren {
|
||||
onClose: VoidFunction
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import type { Hotel, HotelAddress, HotelLocation } from "@/types/hotel"
|
||||
|
||||
export type AboutTheHotelSidePeekProps = {
|
||||
hotelAddress: HotelAddress
|
||||
coordinates: HotelLocation
|
||||
contact: Hotel["contactInformation"]
|
||||
socials: Hotel["socialMedia"]
|
||||
ecoLabels: Hotel["hotelFacts"]["ecoLabels"]
|
||||
descriptions: Hotel["hotelContent"]["texts"]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { AboutTheHotelSidePeekProps } from "./aboutTheHotel"
|
||||
|
||||
export type ContactInformationProps = Omit<
|
||||
AboutTheHotelSidePeekProps,
|
||||
"descriptions"
|
||||
>
|
||||
@@ -22,6 +22,7 @@ export interface SelectHotelMapProps {
|
||||
mapId: string
|
||||
hotels: HotelData[]
|
||||
filterList: CategorizedFilters
|
||||
cityCoordinates: Coordinates
|
||||
}
|
||||
|
||||
type ImageSizes = z.infer<typeof imageSizesSchema>
|
||||
|
||||
Reference in New Issue
Block a user