feat(discount): dedicated «مدیریت تخفیف‌ها» item in the settings menu

Add a standalone settings sidebar entry + route (/admin/discounts) rendering
DiscountsPage (DiscountTab inside SettingsLayout, doctor/clinic only), and
revert the temporary tab inside the subscription page. Cleaner, discoverable
placement.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-17 12:24:32 +03:30
co-authored by Claude Fable 5
parent 07c9600991
commit 8d741767ba
4 changed files with 21 additions and 12 deletions
+17
View File
@@ -0,0 +1,17 @@
import SettingsLayout from '../components/layout/SettingsLayout';
import DiscountTab from '../components/DiscountTab';
/** مدیریت تخفیف‌ها — بخش تنظیمات برای تعریف قوانین تخفیف عمومی (owner-scoped). */
export default function DiscountsPage() {
return (
<SettingsLayout active="discounts">
<div
style={{ background: 'var(--surface)', minWidth: 0 }}
className="px-4 py-4 md:px-6 md:py-6 rounded-[var(--r-lg)]"
>
<h1 className="section-title" style={{ marginBottom: 16 }}>مدیریت تخفیفها</h1>
<DiscountTab />
</div>
</SettingsLayout>
);
}