fix(SW-614): update enter details strings

This commit is contained in:
Tobias Johansson
2024-10-24 14:45:25 +02:00
parent a690750c36
commit 7819db2bb2
8 changed files with 52 additions and 13 deletions

View File

@@ -58,38 +58,47 @@ export default async function StepPage({
const mustBeGuaranteed = false
const paymentGuarantee = intl.formatMessage({
id: "Payment Guarantee",
})
const payment = intl.formatMessage({
id: "Payment",
})
const guaranteeWithCard = intl.formatMessage({
id: "Guarantee booking with credit card",
})
const selectPaymentMethod = intl.formatMessage({
id: "Select payment method",
})
return (
<section>
<HistoryStateManager />
<SectionAccordion
header="Select bed"
header={intl.formatMessage({ id: "Select bed" })}
step={StepEnum.selectBed}
label={intl.formatMessage({ id: "Request bedtype" })}
>
<BedType />
</SectionAccordion>
<SectionAccordion
header="Food options"
header={intl.formatMessage({ id: "Food options" })}
step={StepEnum.breakfast}
label={intl.formatMessage({ id: "Select breakfast options" })}
>
<Breakfast packages={breakfastPackages} />
</SectionAccordion>
<SectionAccordion
header="Details"
header={intl.formatMessage({ id: "Details" })}
step={StepEnum.details}
label={intl.formatMessage({ id: "Enter your details" })}
>
<Details user={user} />
</SectionAccordion>
<SectionAccordion
header={mustBeGuaranteed ? "Payment Guarantee" : "Payment"}
header={mustBeGuaranteed ? paymentGuarantee : payment}
step={StepEnum.payment}
label={
mustBeGuaranteed
? intl.formatMessage({ id: "Guarantee booking with credit card" })
: intl.formatMessage({ id: "Select payment method" })
}
label={mustBeGuaranteed ? guaranteeWithCard : selectPaymentMethod}
>
<Payment
hotelId={searchParams.hotel}