feat: SW-2028 Fix after rebase

This commit is contained in:
Hrishikesh Vaipurkar
2025-03-31 13:28:23 +02:00
parent 03deea1102
commit 4e9ee82efa
4 changed files with 31 additions and 9 deletions

View File

@@ -60,11 +60,15 @@ export default function PointsRateCard({
</Typography>
</header>
<div className={styles.content}>
<RadioGroup value={selectedRate} onChange={onRateSelect}>
<RadioGroup
aria-label={rateTitle}
value={selectedRate}
onChange={onRateSelect}
>
{rates.map((rate, index) => (
<div key={index} className={styles.rateRow}>
<Radio
value={index.toString()}
value={rate.rateCode}
isDisabled={rate.isDisabled || isNotEnoughPoints}
>
<div className={styles.pointsRow}>
@@ -73,7 +77,7 @@ export default function PointsRateCard({
{`${rate.points} `}
<Typography variant="Body/Supporting text (caption)/smBold">
<span>
{`${rate.currency} ${rate.additionalPrice && ' + '}`}
{`${rate.currency} ${rate.additionalPrice ? ' + ' : ''}`}
</span>
</Typography>
</p>
@@ -83,7 +87,7 @@ export default function PointsRateCard({
<p>
{`${rate.additionalPrice.price} `}
<Typography variant="Body/Supporting text (caption)/smBold">
<span>{rate.currency}</span>
<span>{rate.additionalPrice.currency}</span>
</Typography>
</p>
</Typography>
@@ -98,9 +102,9 @@ export default function PointsRateCard({
<footer className={styles.footer}>
<Typography variant="Body/Supporting text (caption)/smBold">
<p className={styles.notEnoughPoints}>
<div className={styles.filledIcon}>
<span className={styles.filledIcon}>
<MaterialIcon icon="info" isFilled size={20} />
</div>
</span>
{notEnoughPointsText}
</p>
</Typography>