Merged in SW-3270-move-interactive-map-to-design-system-or-booking-flow (pull request #2681)
SW-3270 move interactive map to design system or booking flow * wip * wip * merge * wip * add support for locales in design-system * add story for HotelCard * setup alias * . * remove tracking from design-system for hotelcard * pass isUserLoggedIn * export design-system-new-deprecated.css from design-system * Add HotelMarkerByType to Storybook * Add interactive map to Storybook * fix reactintl in vitest * rename env variables * . * fix background colors * add storybook stories for <Link /> * merge * fix tracking for when clicking 'See rooms' in InteractiveMap * Merge branch 'master' of bitbucket.org:scandic-swap/web into SW-3270-move-interactive-map-to-design-system-or-booking-flow * remove deprecated comment Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
import type { PointOfInterest } from "@scandic-hotels/trpc/types/hotel"
|
||||
import type { MarkerInfo } from "@scandic-hotels/trpc/types/marker"
|
||||
import type { ReactElement } from "react"
|
||||
|
||||
import type { HotelPin } from "@/types/components/hotelReservation/selectHotel/map"
|
||||
import type { Coordinates } from "@/types/components/maps/coordinates"
|
||||
|
||||
export interface InteractiveMapProps {
|
||||
coordinates: Coordinates
|
||||
activePoi?: PointOfInterest["name"] | null
|
||||
hotelPins?: HotelPin[]
|
||||
pointsOfInterest?: PointOfInterest[]
|
||||
markerInfo?: MarkerInfo
|
||||
mapId: string
|
||||
closeButton: ReactElement<any>
|
||||
fitBounds?: boolean
|
||||
onTilesLoaded?: () => void
|
||||
onActivePoiChange?: (poi: PointOfInterest["name"] | null) => void
|
||||
}
|
||||
@@ -50,10 +50,6 @@ export type HotelPin = {
|
||||
hasEnoughPoints: boolean
|
||||
}
|
||||
|
||||
export interface HotelListingMapContentProps {
|
||||
hotelPins: HotelPin[]
|
||||
}
|
||||
|
||||
export interface HotelCardDialogProps {
|
||||
type?: "listing" | "standalone"
|
||||
isOpen: boolean
|
||||
@@ -61,15 +57,6 @@ export interface HotelCardDialogProps {
|
||||
handleClose: (event: { stopPropagation: () => void }) => void
|
||||
}
|
||||
|
||||
export interface HotelCardDialogImageProps {
|
||||
firstImage?: string
|
||||
altText?: string
|
||||
rating?: number | null
|
||||
imageError: boolean
|
||||
setImageError: (error: boolean) => void
|
||||
position: "top" | "left"
|
||||
}
|
||||
|
||||
export interface HotelCardDialogListingProps {
|
||||
hotels: HotelResponse[]
|
||||
unfilteredHotelCount: number
|
||||
|
||||
@@ -10,12 +10,6 @@ export type PriceCardProps = {
|
||||
className?: string
|
||||
}
|
||||
|
||||
export type PointsRowProps = {
|
||||
pointsPerStay: number
|
||||
additionalPricePerStay?: number
|
||||
additionalPriceCurrency?: string
|
||||
}
|
||||
|
||||
export type VoucherCardProps = {
|
||||
productTypeVoucher: ProductTypeVoucher
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
import type { PointOfInterestGroupEnum } from "@scandic-hotels/trpc/enums/pointOfInterest"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
import type { poiVariants } from "@/components/Maps/Markers/Poi/variants"
|
||||
|
||||
export interface PoiMarkerProps extends VariantProps<typeof poiVariants> {
|
||||
group: PointOfInterestGroupEnum
|
||||
categoryName?: string
|
||||
className?: string
|
||||
}
|
||||
Reference in New Issue
Block a user