Merged in feat(SW-2083)-missing-booking-codes-scenarios-my-stay (pull request #1680)
Feat(SW-2083) missing booking codes scenarios my stay * feat(SW-2083) Show points instead of reward nights * feat(SW-2083) added support for cheque and voucher for totalPrice Approved-by: Niclas Edenvin
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
"use client"
|
||||
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||
|
||||
import type { Variant } from "../Rooms/TotalPrice"
|
||||
|
||||
export default function Points({
|
||||
points,
|
||||
variant,
|
||||
}: {
|
||||
points: number | null
|
||||
variant: Variant
|
||||
}) {
|
||||
const intl = useIntl()
|
||||
|
||||
if (points === null) {
|
||||
return <SkeletonShimmer width={"100px"} />
|
||||
}
|
||||
|
||||
return (
|
||||
<Typography variant={variant}>
|
||||
<p>
|
||||
{intl.formatNumber(points)} {intl.formatMessage({ id: "Points" })}
|
||||
</p>
|
||||
</Typography>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user