fix: add title to find booking page

add email type to email field
This commit is contained in:
Christian Andolf
2025-04-14 13:54:11 +02:00
parent 3449ccec52
commit d00e8f09a6
2 changed files with 10 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
import FindMyBooking from "@/components/HotelReservation/FindMyBooking" import FindMyBooking from "@/components/HotelReservation/FindMyBooking"
import { getIntl } from "@/i18n"
import styles from "./page.module.css" import styles from "./page.module.css"
@@ -11,3 +12,11 @@ export default function GetBookingPage() {
</main> </main>
) )
} }
export async function generateMetadata() {
const intl = await getIntl()
return {
title: intl.formatMessage({ id: "Find booking" }),
}
}

View File

@@ -109,6 +109,7 @@ export default function FindMyBooking() {
defaultMessage: "Email", defaultMessage: "Email",
})} })}
name="email" name="email"
type="email"
placeholder="anna@scandichotels.com" placeholder="anna@scandichotels.com"
registerOptions={{ required: true }} registerOptions={{ required: true }}
/> />