feat: SW-1583 City search Map view redemption

This commit is contained in:
Hrishikesh Vaipurkar
2025-03-05 19:08:54 +01:00
parent f6db5f2732
commit 23eaa772ea
11 changed files with 72 additions and 16 deletions

View File

@@ -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">