Merge branch 'develop' of bitbucket.org:scandic-swap/web into feature/tracking
This commit is contained in:
@@ -2,4 +2,14 @@ import { z } from "zod"
|
||||
|
||||
import { bookingWidgetSchema } from "@/components/Forms/BookingWidget/schema"
|
||||
|
||||
import type { Locations } from "@/types/trpc/routers/hotel/locations"
|
||||
|
||||
export type BookingWidgetSchema = z.output<typeof bookingWidgetSchema>
|
||||
|
||||
export interface BookingWidgetClientProps {
|
||||
locations: Locations
|
||||
}
|
||||
|
||||
export interface BookingWidgetToggleButtonProps {
|
||||
openMobileSearch: () => void
|
||||
}
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
|
||||
import type { Locale } from "date-fns"
|
||||
import type { DateRange } from "react-day-picker"
|
||||
|
||||
export interface DatePickerFormProps {
|
||||
name?: string
|
||||
}
|
||||
|
||||
type LangWithoutEn = Lang.da | Lang.de | Lang.fi | Lang.no | Lang.sv
|
||||
|
||||
export interface DatePickerProps {
|
||||
close: () => void
|
||||
handleOnSelect: (selected: DateRange) => void
|
||||
locales: Record<LangWithoutEn, Locale>
|
||||
selectedDate: DateRange
|
||||
}
|
||||
|
||||
+4
-1
@@ -1,10 +1,13 @@
|
||||
import { ReactElement } from "react"
|
||||
|
||||
import type { Coordinates } from "@/types/components/maps/coordinates"
|
||||
import type { PointOfInterest } from "@/types/hotel"
|
||||
|
||||
export interface MapContentProps {
|
||||
export interface InteractiveMapProps {
|
||||
coordinates: Coordinates
|
||||
pointsOfInterest: PointOfInterest[]
|
||||
activePoi: PointOfInterest["name"] | null
|
||||
mapId: string
|
||||
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
|
||||
closeButton: ReactElement
|
||||
}
|
||||
+8
@@ -3,3 +3,11 @@ import { Hotel } from "@/types/hotel"
|
||||
export type HotelFiltersProps = {
|
||||
filters: Hotel["detailedFacilities"]
|
||||
}
|
||||
|
||||
export type Filter = {
|
||||
name: string
|
||||
id: number
|
||||
public: boolean
|
||||
sortOrder: number
|
||||
filter?: string
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Coordinates } from "@/types/components/maps/coordinates"
|
||||
import type { PointOfInterest } from "@/types/hotel"
|
||||
|
||||
export interface HotelListingProps {
|
||||
// pointsOfInterest: PointOfInterest[]
|
||||
// activePoi: PointOfInterest["name"] | null
|
||||
// onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
|
||||
}
|
||||
|
||||
export interface SelectHotelMapProps {
|
||||
apiKey: string
|
||||
coordinates: Coordinates
|
||||
pointsOfInterest: PointOfInterest[]
|
||||
mapId: string
|
||||
}
|
||||
@@ -1,4 +1,25 @@
|
||||
import { Hotel, ParkingData } from "@/types/hotel"
|
||||
|
||||
export enum AvailabilityEnum {
|
||||
Available = "Available",
|
||||
NotAvailable = "NotAvailable",
|
||||
}
|
||||
|
||||
export interface DetailedAmenity {
|
||||
name: string
|
||||
heading: string
|
||||
description: string
|
||||
}
|
||||
|
||||
export interface ReadMoreProps {
|
||||
hotelId: string
|
||||
hotel: Hotel
|
||||
}
|
||||
|
||||
export interface ContactProps {
|
||||
hotel: Hotel
|
||||
}
|
||||
|
||||
export interface ParkingProps {
|
||||
parking: ParkingData
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Hotel } from "@/types/hotel"
|
||||
|
||||
export type HotelSelectionHeaderProps = {
|
||||
hotel: Hotel
|
||||
}
|
||||
@@ -17,6 +17,7 @@ export interface LanguageSwitcherProps {
|
||||
|
||||
export interface LanguageSwitcherContentProps {
|
||||
urls: LanguageSwitcherData
|
||||
onLanguageSwitch: () => void
|
||||
}
|
||||
|
||||
export interface LanguageSwitcherContainerProps {
|
||||
|
||||
Reference in New Issue
Block a user