Merge branch 'develop' of bitbucket.org:scandic-swap/web into feature/tracking

This commit is contained in:
Linus Flood
2024-10-03 15:18:54 +02:00
99 changed files with 3064 additions and 766 deletions
+10
View File
@@ -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
}
+14
View File
@@ -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
}
@@ -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
}
@@ -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 {