feat(SW-467): add routing for details steps

This commit is contained in:
Christel Westerberg
2024-10-03 11:39:35 +02:00
parent 00ad62d3a1
commit 1bb2d3f687
5 changed files with 148 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
import { getHotelDataSchema } from "@/server/routers/hotels/output"
import tempHotelData from "@/server/routers/hotels/tempHotelData.json"
import { CheckCircleIcon, ChevronDownIcon } from "@/components/Icons"
import Button from "@/components/TempDesignSystem/Button"
import Link from "@/components/TempDesignSystem/Link"
@@ -5,6 +8,8 @@ import Body from "@/components/TempDesignSystem/Text/Body"
import Caption from "@/components/TempDesignSystem/Text/Caption"
import { getIntl } from "@/i18n"
import HotelSelectionHeader from "../../HotelSelectionHeader"
import styles from "./sectionAccordion.module.css"
import { SectionAccordionProps } from "@/types/components/hotelReservation/selectRate/sectionAccordion"
@@ -15,10 +20,14 @@ export default async function SectionAccordion({
path,
children,
}: React.PropsWithChildren<SectionAccordionProps>) {
const hotel = getHotelDataSchema.parse(tempHotelData)
const intl = await getIntl()
return (
<div className={styles.wrapper}>
<HotelSelectionHeader hotel={hotel.data.attributes} />
<div className={styles.top}>
<div>
<CheckCircleIcon color={selection ? "green" : "pale"} />