feat(SW-243): refactor

This commit is contained in:
Fredrik Thorsson
2024-08-20 15:26:35 +02:00
parent 65509622d2
commit 56a85dcde7
5 changed files with 16 additions and 14 deletions

View File

@@ -1,5 +1,3 @@
import { Stay } from "@/server/routers/user/output"
import { ArrowRightIcon, ScandicLogoIcon } from "@/components/Icons"
import Image from "@/components/Image"
import Body from "@/components/TempDesignSystem/Text/Body"
@@ -58,20 +56,26 @@ export default async function StaySection({ hotel, stay }: StaySectionProps) {
<Body color="burgundy">
{intl.formatMessage({ id: "Breakfast" })}
</Body>
<span>{`Mon-fri ${hotel.breakfast.start}-${hotel.breakfast.end}`}</span>
<span>{`Sat-sun ${hotel.breakfast.start}-${hotel.breakfast.end}`}</span>
<Caption className={styles.caption}>
<span>{`Mon-fri ${hotel.breakfast.start}-${hotel.breakfast.end}`}</span>
<span>{`Sat-sun ${hotel.breakfast.start}-${hotel.breakfast.end}`}</span>
</Caption>
</div>
<div className={styles.checkIn}>
<Body color="burgundy">{intl.formatMessage({ id: "Check in" })}</Body>
<span>From</span>
<span>{hotel.checkIn}</span>
<Caption className={styles.caption}>
<span>{intl.formatMessage({ id: "From" })}</span>
<span>{hotel.checkIn}</span>
</Caption>
</div>
<div className={styles.checkOut}>
<Body color="burgundy">
{intl.formatMessage({ id: "Check out" })}
</Body>
<span>At latest</span>
<span>{hotel.checkOut}</span>
<Caption className={styles.caption}>
<span>{intl.formatMessage({ id: "At latest" })}</span>
<span>{hotel.checkOut}</span>
</Caption>
</div>
</section>
</>