enhancements

This commit is contained in:
2025-10-24 06:22:28 +03:00
parent 3a827a8f69
commit 251e7a9369
3 changed files with 24 additions and 11 deletions

View File

@@ -148,7 +148,9 @@
"delivery": "التوصيل",
"noMenuItemsAvailable": "لا توجد عناصر قائمة متاحة",
"restaurantCover": "غلاف المطعم",
"restaurantLogo": "شعار المطعم"
"restaurantLogo": "شعار المطعم",
"joinUs": "انضم إلى الولاء",
"joinUsDescription": "لتحصل على هدية مجانية"
},
"cart": {
"title": "السلة",
@@ -232,8 +234,7 @@
"useLoyaltyPoints": "استخدام نقاط الولاء",
"noLoyaltyItemsInCart": "لا توجد عناصر ولاء في سلة المشتريات",
"pleaseAddLoyaltyItems": "يرجى إضافة عناصر ولاء إلى سلة المشتريات لاستخدام نقاط الولاء",
"loyaltyDiscountApplied": "تم تطبيق خصم الولاء: {{itemName}} (خصم {{amount}})",
"joinToEarn": "انضم إلى الولاء لتحصل على هدية مجانية"
"loyaltyDiscountApplied": "تم تطبيق خصم الولاء: {{itemName}} (خصم {{amount}})"
},
"checkout": {
"title": "الدفع",

View File

@@ -161,7 +161,8 @@
"searchPlaceholder": "Search for products...",
"noResultsFound": "No results found",
"cart": "Cart",
"joinToEarn": "Join us to earn loyalty points"
"joinUs": "Join us",
"joinUsDescription": "to earn loyalty points"
},
"cart": {
"title": "Cart",

View File

@@ -66,12 +66,23 @@ const LoyaltyCard = () => {
value: restaurant?.loyalty_stamps ?? 0,
})}
{!token && (
<div style={{ paddingTop: 4 }}>
<Link
to={`/${id}/login`}
style={{ color: colors.primary, marginTop: 4 }}
style={{
color: colors.primary,
textDecoration: "underline",
fontSize: "14px",
fontWeight: 400,
padding: "0 4px",
}}
>
{t("menu.joinToEarn")}
{t("menu.joinUs")}
</Link>
<span style={{ fontSize: "14px", color: colors.secondary }}>
{t("menu.joinUsDescription")}
</span>
</div>
)}
</ProText>
</Col>