refactor(sidebar): single 'تنظیمات' entry, move settings items out of main nav
For the doctor and clinic roles, collapse the subscription section into one 'تنظیمات' item (Cog icon) pointing at /admin/subscription, matching the tauri main sidebar. Remove the items that now live in the in-page settings submenu (insurance-pricing, clinic-services, sms-wallet) from the main nav so they are not duplicated. Secretary (no settings page) is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,6 @@ import {
|
||||
UserGroupIcon,
|
||||
UserPlusIcon,
|
||||
UsersIcon,
|
||||
WrenchScrewdriverIcon,
|
||||
} from "@heroicons/react/24/outline";
|
||||
import { NavLink, useNavigate } from "react-router-dom";
|
||||
import { useSubscription } from "../../hooks/useSubscription";
|
||||
@@ -214,12 +213,6 @@ function buildSections(
|
||||
label: "پرونده بیماران",
|
||||
feature: "patient_records",
|
||||
},
|
||||
{
|
||||
to: "/admin/insurance-pricing",
|
||||
icon: ShieldCheckIcon,
|
||||
label: "قیمتگذاری بیمه",
|
||||
feature: "insurance",
|
||||
},
|
||||
{
|
||||
to: "/admin/claims",
|
||||
icon: DocumentTextIcon,
|
||||
@@ -232,27 +225,17 @@ function buildSections(
|
||||
icon: IdentificationIcon,
|
||||
label: "منشی ها",
|
||||
},
|
||||
{
|
||||
to: "/admin/clinic-services",
|
||||
icon: WrenchScrewdriverIcon,
|
||||
label: "سرویسها",
|
||||
feature: "services",
|
||||
},
|
||||
{
|
||||
to: "/admin/sms-wallet",
|
||||
icon: DevicePhoneMobileIcon,
|
||||
label: "کیف پول پیامک",
|
||||
feature: "sms_panel",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "اشتراک",
|
||||
// مدیریت بیمه / سرویسها / کیف پول پیامک زیر همین «تنظیمات» است
|
||||
// (منوی داخل صفحهٔ اشتراک)، نه در سایدبار اصلی.
|
||||
label: "تنظیمات",
|
||||
items: [
|
||||
{
|
||||
to: "/admin/subscription",
|
||||
icon: CreditCardIcon,
|
||||
label: "پنل اشتراکی",
|
||||
icon: Cog6ToothIcon,
|
||||
label: "تنظیمات",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -295,12 +278,6 @@ function buildSections(
|
||||
label: "پرونده بیماران",
|
||||
feature: "patient_records",
|
||||
},
|
||||
{
|
||||
to: "/admin/insurance-pricing",
|
||||
icon: ShieldCheckIcon,
|
||||
label: "قیمتگذاری بیمه",
|
||||
feature: "insurance",
|
||||
},
|
||||
{
|
||||
to: "/admin/claims",
|
||||
icon: DocumentTextIcon,
|
||||
@@ -313,27 +290,17 @@ function buildSections(
|
||||
icon: IdentificationIcon,
|
||||
label: "منشی ها",
|
||||
},
|
||||
{
|
||||
to: "/admin/clinic-services",
|
||||
icon: WrenchScrewdriverIcon,
|
||||
label: "سرویسها",
|
||||
feature: "services",
|
||||
},
|
||||
{
|
||||
to: "/admin/sms-wallet",
|
||||
icon: DevicePhoneMobileIcon,
|
||||
label: "کیف پول پیامک",
|
||||
feature: "sms_panel",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "اشتراک",
|
||||
// مدیریت بیمه / سرویسها / کیف پول پیامک زیر همین «تنظیمات» است
|
||||
// (منوی داخل صفحهٔ اشتراک)، نه در سایدبار اصلی.
|
||||
label: "تنظیمات",
|
||||
items: [
|
||||
{
|
||||
to: "/admin/subscription",
|
||||
icon: CreditCardIcon,
|
||||
label: "پنل اشتراکی",
|
||||
icon: Cog6ToothIcon,
|
||||
label: "تنظیمات",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user