feat(SW-302): switch out mock data for facility cards
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
import type { FacilityCard } from "./hotelPage/facilities"
|
||||
|
||||
export interface CardImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
card: FacilityCard | undefined
|
||||
card: CardProps | undefined
|
||||
imageCards: Pick<CardProps, "backgroundImage">[]
|
||||
}
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
|
||||
interface ColumnSpanOptions {
|
||||
columnSpan: "one" | "two" | "three"
|
||||
}
|
||||
|
||||
export type FacilityCard = CardProps & ColumnSpanOptions
|
||||
|
||||
export type Facility = Array<FacilityCard>
|
||||
export type Facility = Array<CardProps>
|
||||
|
||||
export type Facilities = Array<Facility>
|
||||
|
||||
@@ -17,3 +11,9 @@ export type FacilityProps = {
|
||||
export type CardGridProps = {
|
||||
facility: Facility
|
||||
}
|
||||
|
||||
export enum facilityEnum {
|
||||
wellness = "wellness-and-exercise",
|
||||
conference = "meetings-and-conferences",
|
||||
restaurant = "restaurant-and-bar",
|
||||
}
|
||||
|
||||
8
types/components/image.ts
Normal file
8
types/components/image.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export type ApiImage = {
|
||||
url: string
|
||||
title: string
|
||||
meta: {
|
||||
alt: string
|
||||
caption: string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user