feat: refactor of my stay

This commit is contained in:
Simon Emanuelsson
2025-04-25 14:08:14 +02:00
committed by Simon.Emanuelsson
parent b5deb84b33
commit ec087a3d15
208 changed files with 5458 additions and 4569 deletions

View File

@@ -4,9 +4,12 @@ import { getIntl } from "@/i18n"
import styles from "./header.module.css"
import type { BookingConfirmation } from "@/types/trpc/routers/booking/confirmation"
import type { Hotel } from "@/types/hotel"
export async function Header({ hotel }: Pick<BookingConfirmation, "hotel">) {
export async function Header({
cityName,
name,
}: Pick<Hotel, "cityName" | "name">) {
const intl = await getIntl()
return (
<header>
@@ -20,8 +23,8 @@ export async function Header({ hotel }: Pick<BookingConfirmation, "hotel">) {
" "
}
</BiroScript>
<span className={styles.hotelName}>{hotel.name}</span>
{hotel.cityName}
<span className={styles.hotelName}>{name}</span>
{cityName}
</Title>
</header>
)