fix: rename omnibusRate prop and enable for regular RateCard

This commit is contained in:
Arvid Norlin
2025-03-26 13:50:52 +01:00
parent c065101b7c
commit d5d00bea7a
4 changed files with 28 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ interface RegularRateCardProps {
paymentTerm: string
rate?: Rate
memberRate?: Rate
omnibusRate?: Rate
approximateRate?: Rate
hidePublicRate?: boolean
handleChange: () => void
@@ -28,6 +29,7 @@ export default function RegularRateCard({
rateTitle,
paymentTerm,
approximateRate,
omnibusRate,
rate,
memberRate,
hidePublicRate,
@@ -112,6 +114,18 @@ export default function RegularRateCard({
</div>
) : null}
</div>
{omnibusRate ? (
<footer className={styles.footer}>
<Typography variant="Tag/sm">
<p>{omnibusRate.label}</p>
</Typography>
<Typography variant="Tag/sm">
<p>
{omnibusRate.price} {omnibusRate.unit}
</p>
</Typography>
</footer>
) : null}
</div>
</div>
</label>