feat: SW-1583 Used constants for strings
This commit is contained in:
@@ -13,7 +13,7 @@ export default function HotelPointsCard({
|
||||
}: PointsCardProps) {
|
||||
const intl = useIntl()
|
||||
const pointsPerStay =
|
||||
productTypePoints?.localPrice.pricePerStay ?? redemptionPrice
|
||||
productTypePoints?.localPrice.pointsPerStay ?? redemptionPrice
|
||||
|
||||
return (
|
||||
<div className={styles.poinstRow}>
|
||||
|
||||
@@ -190,10 +190,13 @@ function HotelCard({
|
||||
<Caption>
|
||||
{intl.formatMessage({ id: "Available rates" })}
|
||||
</Caption>
|
||||
{/* Display rate with full points option */}
|
||||
<HotelPointsCard productTypePoints={price.redemption} />
|
||||
{/* Display rate with partial points option A */}
|
||||
{price.redemptionA && (
|
||||
<HotelPointsCard productTypePoints={price.redemptionA} />
|
||||
)}
|
||||
{/* Display rate with partial points option B */}
|
||||
{price.redemptionB && (
|
||||
<HotelPointsCard productTypePoints={price.redemptionB} />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user