fix(SW-302): fixes after rebase
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
import type { Facility } from "@/types/components/hotelPage/facilities"
|
||||
import type { ActivityCard } from "@/types/trpc/routers/contentstack/hotelPage"
|
||||
|
||||
export function setActivityCard(activitiesCard: ActivityCard): Facility {
|
||||
const hasImage = !!activitiesCard.background_image
|
||||
return [
|
||||
{
|
||||
id: "activities",
|
||||
theme: hasImage ? "image" : "primaryDark",
|
||||
scriptedTopTitle: activitiesCard.scripted_title,
|
||||
heading: activitiesCard.heading,
|
||||
bodyText: activitiesCard.body_text,
|
||||
backgroundImage: hasImage ? activitiesCard.background_image : undefined,
|
||||
primaryButton: hasImage
|
||||
? {
|
||||
href: activitiesCard.contentPage.href,
|
||||
title: activitiesCard.cta_text,
|
||||
isExternal: false,
|
||||
}
|
||||
: undefined,
|
||||
secondaryButton: hasImage
|
||||
? undefined
|
||||
: {
|
||||
href: activitiesCard.contentPage.href,
|
||||
title: activitiesCard.cta_text,
|
||||
isExternal: false,
|
||||
},
|
||||
columnSpan: "three",
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
export function getCardTheme() {
|
||||
// TODO
|
||||
}
|
||||
@@ -55,7 +55,7 @@ export default async function HotelPage() {
|
||||
facilityCards,
|
||||
hotelDetailedFacilities
|
||||
)
|
||||
activitiesCard && facilities.push(setActivityCard(activitiesCard))
|
||||
//activitiesCard && facilities.push(setActivityCard(activitiesCard))
|
||||
const topThreePois = pointsOfInterest.slice(0, 3)
|
||||
|
||||
const coordinates = {
|
||||
|
||||
Reference in New Issue
Block a user