feat(SW-1717): rewrite select-rate to show all variants of rate-cards
This commit is contained in:
committed by
Michael Zetterberg
parent
adde77eaa9
commit
ebaea78fb3
24
apps/scandic-web/hooks/booking/useRateTitles.ts
Normal file
24
apps/scandic-web/hooks/booking/useRateTitles.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
"use client"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
export default function useRateTitles() {
|
||||
const intl = useIntl()
|
||||
|
||||
const payNow = intl.formatMessage({ id: "Pay now" })
|
||||
|
||||
return {
|
||||
change: {
|
||||
paymentTerm: payNow,
|
||||
title: intl.formatMessage({ id: "Free rebooking" }),
|
||||
},
|
||||
flex: {
|
||||
paymentTerm: intl.formatMessage({ id: "Pay later" }),
|
||||
title: intl.formatMessage({ id: "Free cancellation" }),
|
||||
},
|
||||
save: {
|
||||
paymentTerm: payNow,
|
||||
title: intl.formatMessage({ id: "Non-refundable" }),
|
||||
},
|
||||
noPriceAvailable: intl.formatMessage({ id: "No prices available" }),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user