feat: refactor of my stay
This commit is contained in:
committed by
Simon.Emanuelsson
parent
b5deb84b33
commit
ec087a3d15
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user