feat(refill): map refill state in cartStore, clarify free loyalty 5% discount UX, and render Refill badges across full app and admin
This commit is contained in:
1 parent
24c361c4ff
commit
b5650c4cbb
7 files changed
+92
-11
No files matched your search
@@ -91,6 +91,16 @@ export default function OrderSuccess({ orderId }: { orderId: string }) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{order.isRefill && (
|
||||
<div className="p-6 bg-green-50 border border-green-200 rounded-3xl mb-12 text-right flex items-center justify-between">
|
||||
<div>
|
||||
<h5 className="font-black text-green-800 text-sm italic">سرویس تمدید خودکار (Refill) با ۵٪ تخفیف روی این سفارش فعال شد</h5>
|
||||
<p className="text-xs text-green-700 font-bold mt-1">قبل از اتمام مکمل، یادآوری و ارسال بعدی به صورت هوشمند برای شما هماهنگ خواهد شد.</p>
|
||||
</div>
|
||||
<span className="px-3 py-1 bg-green-600 text-white font-black text-xs rounded-full shrink-0">۵٪ تخفیف اعمال شد</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="space-y-4">
|
||||
<button
|
||||
onClick={() => router.push('/track')}
|
||||
|
||||
Reference in new issue
Block a user