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,
|
UserGroupIcon,
|
||||||
UserPlusIcon,
|
UserPlusIcon,
|
||||||
UsersIcon,
|
UsersIcon,
|
||||||
WrenchScrewdriverIcon,
|
|
||||||
} from "@heroicons/react/24/outline";
|
} from "@heroicons/react/24/outline";
|
||||||
import { NavLink, useNavigate } from "react-router-dom";
|
import { NavLink, useNavigate } from "react-router-dom";
|
||||||
import { useSubscription } from "../../hooks/useSubscription";
|
import { useSubscription } from "../../hooks/useSubscription";
|
||||||
@@ -214,12 +213,6 @@ function buildSections(
|
|||||||
label: "پرونده بیماران",
|
label: "پرونده بیماران",
|
||||||
feature: "patient_records",
|
feature: "patient_records",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
to: "/admin/insurance-pricing",
|
|
||||||
icon: ShieldCheckIcon,
|
|
||||||
label: "قیمتگذاری بیمه",
|
|
||||||
feature: "insurance",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
to: "/admin/claims",
|
to: "/admin/claims",
|
||||||
icon: DocumentTextIcon,
|
icon: DocumentTextIcon,
|
||||||
@@ -232,27 +225,17 @@ function buildSections(
|
|||||||
icon: IdentificationIcon,
|
icon: IdentificationIcon,
|
||||||
label: "منشی ها",
|
label: "منشی ها",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
to: "/admin/clinic-services",
|
|
||||||
icon: WrenchScrewdriverIcon,
|
|
||||||
label: "سرویسها",
|
|
||||||
feature: "services",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/admin/sms-wallet",
|
|
||||||
icon: DevicePhoneMobileIcon,
|
|
||||||
label: "کیف پول پیامک",
|
|
||||||
feature: "sms_panel",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "اشتراک",
|
// مدیریت بیمه / سرویسها / کیف پول پیامک زیر همین «تنظیمات» است
|
||||||
|
// (منوی داخل صفحهٔ اشتراک)، نه در سایدبار اصلی.
|
||||||
|
label: "تنظیمات",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
to: "/admin/subscription",
|
to: "/admin/subscription",
|
||||||
icon: CreditCardIcon,
|
icon: Cog6ToothIcon,
|
||||||
label: "پنل اشتراکی",
|
label: "تنظیمات",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -295,12 +278,6 @@ function buildSections(
|
|||||||
label: "پرونده بیماران",
|
label: "پرونده بیماران",
|
||||||
feature: "patient_records",
|
feature: "patient_records",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
to: "/admin/insurance-pricing",
|
|
||||||
icon: ShieldCheckIcon,
|
|
||||||
label: "قیمتگذاری بیمه",
|
|
||||||
feature: "insurance",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
to: "/admin/claims",
|
to: "/admin/claims",
|
||||||
icon: DocumentTextIcon,
|
icon: DocumentTextIcon,
|
||||||
@@ -313,27 +290,17 @@ function buildSections(
|
|||||||
icon: IdentificationIcon,
|
icon: IdentificationIcon,
|
||||||
label: "منشی ها",
|
label: "منشی ها",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
to: "/admin/clinic-services",
|
|
||||||
icon: WrenchScrewdriverIcon,
|
|
||||||
label: "سرویسها",
|
|
||||||
feature: "services",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/admin/sms-wallet",
|
|
||||||
icon: DevicePhoneMobileIcon,
|
|
||||||
label: "کیف پول پیامک",
|
|
||||||
feature: "sms_panel",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "اشتراک",
|
// مدیریت بیمه / سرویسها / کیف پول پیامک زیر همین «تنظیمات» است
|
||||||
|
// (منوی داخل صفحهٔ اشتراک)، نه در سایدبار اصلی.
|
||||||
|
label: "تنظیمات",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
to: "/admin/subscription",
|
to: "/admin/subscription",
|
||||||
icon: CreditCardIcon,
|
icon: Cog6ToothIcon,
|
||||||
label: "پنل اشتراکی",
|
label: "تنظیمات",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user