Merged in fix/LOY-369-Redeem-tier-rewards (pull request #2822)
fix(LOY-369): Able to redeem tier rewards * fix(LOY-369): able to redeem on site tier rewards * fix(LOY-369): single mutation call * fix(LOY-369): apply coupon check for all tier rewards Approved-by: Linus Flood Approved-by: Matilda Landström
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useRef, useState } from "react"
|
||||
|
||||
import Title from "@scandic-hotels/design-system/Title"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
import { trpc } from "@scandic-hotels/trpc/client"
|
||||
import { type Reward } from "@scandic-hotels/trpc/types/rewards"
|
||||
|
||||
@@ -75,14 +75,9 @@ export default function ClientCurrentRewards({
|
||||
<div className={styles.content}>
|
||||
<RewardIcon rewardId={reward.reward_id} />
|
||||
{showRedeem && <ScriptedRewardText reward={reward} />}
|
||||
<Title
|
||||
as="h4"
|
||||
level="h3"
|
||||
textAlign="center"
|
||||
textTransform="regular"
|
||||
>
|
||||
{reward.label}
|
||||
</Title>
|
||||
<Typography variant="Title/smLowCase">
|
||||
<h4 className={styles.title}>{reward.label}</h4>
|
||||
</Typography>
|
||||
{earliestExpirationDate ? (
|
||||
<ExpirationDate expirationDate={earliestExpirationDate} />
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user