loyalty: enhance card texts
This commit is contained in:
@@ -166,7 +166,9 @@
|
||||
"address": "العنوان",
|
||||
"openingTimes": "ساعات العمل",
|
||||
"customizable": "قابل للتخصيص",
|
||||
"youHaveXEarnedRewardsReadyToRedeem": "🎉 لديك {{rewards}} مكافأة مستحقة للاستخدام!"
|
||||
"youHaveXEarnedRewardsReadyToRedeem": "🎉 لديك {{rewards}} مكافأة مستحقة للاستخدام!",
|
||||
"justXMorePurchasesToUnlockYourFREEItem": "فقط {{cups}} أكثر للفتح الوجبة المجانية!",
|
||||
"youreJustXCupsAwayFromYourNextReward": "🎉 أنت فقط {{cups}} أكثر للحصول على المكافأة التالية!"
|
||||
},
|
||||
"cart": {
|
||||
"addSpecialRequestOptional": "إضافة طلب خاص (اختياري)",
|
||||
@@ -593,5 +595,5 @@
|
||||
"yourOrderFrom": "طلبك من {{restaurantName}}",
|
||||
"earned": "حصل على",
|
||||
"xPoints": "{{points}} نقطة"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +178,9 @@
|
||||
"address": "Address",
|
||||
"openingTimes": "Opening Times",
|
||||
"customizable": "Customizable",
|
||||
"youHaveXEarnedRewardsReadyToRedeem": "🎉 You have {{rewards}} rewards ready to redeem!"
|
||||
"youHaveXEarnedRewardsReadyToRedeem": "🎉 You have {{rewards}} rewards ready to redeem!",
|
||||
"justXMorePurchasesToUnlockYourFREEItem": "Just {{cups}} more purchases to unlock your FREE item!",
|
||||
"youreJustXCupsAwayFromYourNextReward": "🎉 You're just {{cups}} cups away from your next reward!"
|
||||
},
|
||||
"cart": {
|
||||
"remainingToPay": "Remaining to Pay",
|
||||
|
||||
@@ -115,27 +115,25 @@ const LoyaltyCard = () => {
|
||||
paddingBottom: 12,
|
||||
}}
|
||||
>
|
||||
{Array.from({ length: loyaltyStamps }).map(
|
||||
(_, index) => {
|
||||
const currentPoints = customerLoyaltyPoints % loyaltyStamps;
|
||||
const isCollected = index < currentPoints;
|
||||
return (
|
||||
<Col key={index}>
|
||||
<Image
|
||||
key={index}
|
||||
className={styles.presentIconItem}
|
||||
preview={false}
|
||||
width={40}
|
||||
height={40}
|
||||
src={restaurant?.loyalty_stamp_image}
|
||||
style={{
|
||||
opacity: isCollected ? 1 : 0.4,
|
||||
}}
|
||||
/>
|
||||
</Col>
|
||||
);
|
||||
},
|
||||
)}
|
||||
{Array.from({ length: loyaltyStamps }).map((_, index) => {
|
||||
const currentPoints = customerLoyaltyPoints % loyaltyStamps;
|
||||
const isCollected = index < currentPoints;
|
||||
return (
|
||||
<Col key={index}>
|
||||
<Image
|
||||
key={index}
|
||||
className={styles.presentIconItem}
|
||||
preview={false}
|
||||
width={40}
|
||||
height={40}
|
||||
src={restaurant?.loyalty_stamp_image}
|
||||
style={{
|
||||
opacity: isCollected ? 1 : 0.4,
|
||||
}}
|
||||
/>
|
||||
</Col>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<ProText
|
||||
strong
|
||||
@@ -150,11 +148,11 @@ const LoyaltyCard = () => {
|
||||
}}
|
||||
>
|
||||
{customerLoyaltyPoints < loyaltyStamps &&
|
||||
t("rewardsAndLoyalty.youreJustXCupsAwayFromYourNextReward", {
|
||||
t("menu.justXMorePurchasesToUnlockYourFREEItem", {
|
||||
cups: remainingToNextReward,
|
||||
})}
|
||||
{customerLoyaltyPoints >= loyaltyStamps &&
|
||||
t("rewardsAndLoyalty.youreJustXCupsAwayFromYourNextReward", {
|
||||
t("menu.youreJustXCupsAwayFromYourNextReward", {
|
||||
cups: remainingToNextReward,
|
||||
})}
|
||||
</ProText>
|
||||
|
||||
Reference in New Issue
Block a user