refactor: move secretary and staff management from main nav to settings menu

Remove پرسنل (/admin/staff) and منشی ها (/admin/my-secretaries) from the
clinic and doctor main sidebars; surface them under the settings menu instead
(PurchaseSubscriptionSidebar + SETTINGS_MENU). Wrap StaffPage in SettingsLayout
so it renders inside the settings shell like MySecretariesPage already does.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-15 11:51:31 +03:30
co-authored by Claude Opus 4.8
parent cf02fdd433
commit 850b2832ff
5 changed files with 29 additions and 17 deletions
@@ -13,7 +13,6 @@ import {
DocumentTextIcon,
FolderOpenIcon,
HeartIcon,
IdentificationIcon,
KeyIcon,
LockClosedIcon,
ShieldCheckIcon,
@@ -21,7 +20,6 @@ import {
TagIcon,
UserCircleIcon,
UserGroupIcon,
UserPlusIcon,
UsersIcon,
} from "@heroicons/react/24/outline";
import { NavLink, useNavigate } from "react-router-dom";
@@ -224,12 +222,6 @@ function buildSections(
label: "مطالبات بیمه",
feature: "insurance",
},
{ to: "/admin/staff", icon: UserPlusIcon, label: "پرسنل" },
{
to: "/admin/my-secretaries",
icon: IdentificationIcon,
label: "منشی ها",
},
],
},
{
@@ -294,12 +286,6 @@ function buildSections(
label: "مطالبات بیمه",
feature: "insurance",
},
{ to: "/admin/staff", icon: UserPlusIcon, label: "پرسنل" },
{
to: "/admin/my-secretaries",
icon: IdentificationIcon,
label: "منشی ها",
},
],
},
{