|
-
-
+
|
+
))
)}
diff --git a/frontend/admin-panel/src/pages/Coupons.tsx b/frontend/admin-panel/src/pages/Coupons.tsx
index 7fd47df..72de30e 100644
--- a/frontend/admin-panel/src/pages/Coupons.tsx
+++ b/frontend/admin-panel/src/pages/Coupons.tsx
@@ -218,17 +218,34 @@ export default function Coupons() {
{c.maxUses && / {c.maxUses}}
- handleToggle(c.id, c.isActive)} className={`px-3 py-1 text-xs font-bold rounded-lg transition-colors flex items-center gap-1 ${c.isActive ? 'bg-green-100 text-green-700 hover:bg-green-200' : 'bg-gray-100 text-gray-600 hover:bg-gray-200'}`}>
- {c.isActive ? : }
+ handleToggle(c.id, c.isActive)}
+ >
{c.isActive ? 'فعال' : 'غیرفعال'}
-
+
|
- openModal(c)} className="p-2 text-blue-600 hover:bg-blue-50 rounded-lg transition-colors">
- setDeleteTargetId(c.id)} className="p-2 text-red-600 hover:bg-red-50 rounded-lg transition-colors">
+ openModal(c)}
+ className="text-blue-600 hover:bg-blue-50"
+ />
+ setDeleteTargetId(c.id)}
+ className="text-red-600 hover:bg-red-50"
+ />
|
+
))
)}
@@ -456,9 +473,15 @@ function CouponModal({ formData, setFormData, onSave, onClose, isEditing }: Coup
اهداف اختصاصی (Targets & Modifiers)
-
- افزودن هدف
-
+
+ افزودن هدف
+
{formData.targets.length === 0 ? (
@@ -499,13 +522,19 @@ function CouponModal({ formData, setFormData, onSave, onClose, isEditing }: Coup
updateTarget(i, 'modifierValue', e.target.value)} dir="ltr" className="w-full px-2.5 py-2 rounded-xl border border-gray-200 text-xs outline-none focus:border-purple-500" />
- removeTarget(i)} className="p-2.5 text-red-500 bg-red-50 hover:bg-red-100 rounded-xl transition-colors shrink-0 cursor-pointer">
-
-
+ removeTarget(i)}
+ className="text-red-500 hover:bg-red-50"
+ />
))}
)}
+
diff --git a/frontend/admin-panel/src/pages/IngredientsManager.tsx b/frontend/admin-panel/src/pages/IngredientsManager.tsx
index a5bdc70..d76d429 100644
--- a/frontend/admin-panel/src/pages/IngredientsManager.tsx
+++ b/frontend/admin-panel/src/pages/IngredientsManager.tsx
@@ -233,14 +233,23 @@ export default function IngredientsManager() {
- openModal(item)} className="p-2 text-blue-600 hover:bg-blue-50 rounded-lg transition-colors">
-
-
- setDeleteTargetId(item.id)} className="p-2 text-red-600 hover:bg-red-50 rounded-lg transition-colors">
-
-
+ openModal(item)}
+ className="text-blue-600 hover:bg-blue-50"
+ />
+ setDeleteTargetId(item.id)}
+ className="text-red-600 hover:bg-red-50"
+ />
|
+
))
)}
diff --git a/frontend/admin-panel/src/pages/MenuManager.tsx b/frontend/admin-panel/src/pages/MenuManager.tsx
index 4eecb30..4233bbe 100644
--- a/frontend/admin-panel/src/pages/MenuManager.tsx
+++ b/frontend/admin-panel/src/pages/MenuManager.tsx
@@ -282,14 +282,23 @@ export default function MenuManager() {
{child.href}
- openModal(child)} className="p-1.5 text-blue-600 hover:bg-blue-50 rounded-lg">
-
-
- setDeleteTargetId(child.id)} className="p-1.5 text-red-500 hover:bg-red-50 rounded-lg">
-
-
+ openModal(child)}
+ className="text-blue-600 hover:bg-blue-50"
+ />
+ setDeleteTargetId(child.id)}
+ className="text-red-500 hover:bg-red-50"
+ />
+
))}
)}
diff --git a/frontend/admin-panel/src/pages/Orders.tsx b/frontend/admin-panel/src/pages/Orders.tsx
index 210ee4e..3e38f01 100644
--- a/frontend/admin-panel/src/pages/Orders.tsx
+++ b/frontend/admin-panel/src/pages/Orders.tsx
@@ -719,38 +719,41 @@ export default function Orders() {
- openOrderModal(order)}
- className="text-purple-600 hover:bg-purple-50 p-2 rounded-xl transition-colors flex items-center gap-1 font-bold text-xs cursor-pointer"
- title="مشاهده فاکتور و جزئیات کامل"
disabled={isProcessing}
+ className="text-purple-600 hover:bg-purple-50"
>
-
- جزئیات
-
+ جزئیات
+
- handlePrintInvoice(order)}
- className="text-gray-600 hover:bg-gray-100 p-2 rounded-xl transition-colors cursor-pointer"
- title="چاپ فوری فاکتور رسمی"
disabled={isProcessing}
- >
-
-
+ className="text-gray-600 hover:bg-gray-100"
+ />
{(order.status === 'cancelled' || order.status === 'pending_payment') && (
- openOrderRefundModal(order)}
- className="text-rose-600 hover:bg-rose-50 p-2 rounded-xl transition-colors flex items-center gap-1 font-bold text-xs cursor-pointer"
- title="استرداد وجه به کاربر (کیف پول / شاپرک)"
disabled={isProcessing}
+ className="text-rose-600 hover:bg-rose-50"
>
-
- استرداد
-
+ استرداد
+
)}
|
+
);
})
diff --git a/frontend/admin-panel/src/pages/Products.tsx b/frontend/admin-panel/src/pages/Products.tsx
index e721ae0..a92e3f7 100644
--- a/frontend/admin-panel/src/pages/Products.tsx
+++ b/frontend/admin-panel/src/pages/Products.tsx
@@ -602,14 +602,23 @@ export default function Products() {
- openModal(product)} className="p-2 text-blue-600 hover:bg-blue-50 rounded-lg transition-colors">
-
-
- setDeleteTargetId(product.id)} className="p-2 text-red-600 hover:bg-red-50 rounded-lg transition-colors">
-
-
+ openModal(product)}
+ className="text-blue-600 hover:bg-blue-50"
+ />
+ setDeleteTargetId(product.id)}
+ className="text-red-600 hover:bg-red-50"
+ />
|
+
))
)}
diff --git a/frontend/admin-panel/src/pages/Wiki.tsx b/frontend/admin-panel/src/pages/Wiki.tsx
index 8c118a4..6ded219 100644
--- a/frontend/admin-panel/src/pages/Wiki.tsx
+++ b/frontend/admin-panel/src/pages/Wiki.tsx
@@ -188,9 +188,22 @@ export default function Wiki() {
{t.definition} |
- openModal(t)} className="p-2 text-blue-600 hover:bg-blue-50 rounded-lg transition-colors cursor-pointer">
- setDeleteTargetKey(t.key)} className="p-2 text-red-600 hover:bg-red-50 rounded-lg transition-colors cursor-pointer">
+ openModal(t)}
+ className="text-blue-600 hover:bg-blue-50"
+ />
+ setDeleteTargetKey(t.key)}
+ className="text-red-600 hover:bg-red-50"
+ />
+
|
))