feat: SW-1583 City search Map view redemption
This commit is contained in:
@@ -9,18 +9,21 @@ import type { PointsCardProps } from "@/types/components/hotelReservation/select
|
||||
|
||||
export default function HotelPointsCard({
|
||||
productTypePoints,
|
||||
redemptionPrice,
|
||||
}: PointsCardProps) {
|
||||
const intl = useIntl()
|
||||
const pointsPerStay =
|
||||
productTypePoints?.localPrice.pricePerStay ?? redemptionPrice
|
||||
|
||||
return (
|
||||
<div className={styles.poinstRow}>
|
||||
<Subtitle type="two" color="uiTextHighContrast">
|
||||
{productTypePoints.localPrice.pointsPerStay}
|
||||
{pointsPerStay}
|
||||
</Subtitle>
|
||||
<Caption color="uiTextHighContrast">
|
||||
{intl.formatMessage({ id: "Points" })}
|
||||
</Caption>
|
||||
{productTypePoints.localPrice.pricePerStay ? (
|
||||
{productTypePoints?.localPrice.pricePerStay ? (
|
||||
<>
|
||||
+
|
||||
<Subtitle type="two" color="uiTextHighContrast">
|
||||
|
||||
Reference in New Issue
Block a user