feat: use number input for guests

- Add translations
main
RaviAnand Mohabir 3 months ago
parent cf174db014
commit ad22d47947

@ -4,6 +4,7 @@ import { Button } from "@/components/ui/button";
import DateTimePicker from "./date-time-picker"; import DateTimePicker from "./date-time-picker";
import { Field } from "@/components/ui/field"; import { Field } from "@/components/ui/field";
import { Input } from "@/components/ui/input"; import { Input } from "@/components/ui/input";
import { NumberInput } from "@/components/ui/number-input";
import { getI18n } from "@/i18n/server"; import { getI18n } from "@/i18n/server";
import { stack } from "@styled-system/patterns"; import { stack } from "@styled-system/patterns";
import { styled } from "@styled-system/jsx"; import { styled } from "@styled-system/jsx";
@ -31,7 +32,7 @@ export default async function ReservationForm() {
<DateTimePicker /> <DateTimePicker />
<Field.Root id="guests"> <Field.Root id="guests">
<Field.Label>{t("reservation.guests")}</Field.Label> <Field.Label>{t("reservation.guests")}</Field.Label>
<Field.Input name="guests" placeholder={t("reservation.guests")} /> <NumberInput name="guests" />
</Field.Root> </Field.Root>
<Field.Root id="message"> <Field.Root id="message">
<Field.Label>{t("contact.message")}</Field.Label> <Field.Label>{t("contact.message")}</Field.Label>

@ -10,6 +10,7 @@ export default {
openingTimes: "Öffnungszeiten", openingTimes: "Öffnungszeiten",
date: "Datum", date: "Datum",
time: "Zeit", time: "Zeit",
submit: "Absenden",
en: "Englisch", en: "Englisch",
de: "Deutsch", de: "Deutsch",
fr: "Französisch", fr: "Französisch",
@ -34,4 +35,7 @@ export default {
message: "Nachricht", message: "Nachricht",
reservation: "Reservation", reservation: "Reservation",
}, },
reservation: {
guests: "Gäste",
},
} as const; } as const;

@ -10,6 +10,7 @@ export default {
phoneNumber: "Phone", phoneNumber: "Phone",
date: "Date", date: "Date",
time: "Time", time: "Time",
submit: "Submit",
en: "English", en: "English",
de: "German", de: "German",
fr: "French", fr: "French",

Loading…
Cancel
Save