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
+3 -2
View File
@@ -13,6 +13,7 @@ import DataTable, { type Column } from '../components/ui/DataTable';
import Modal from '../components/ui/Modal';
import ConfirmDialog from '../components/ui/ConfirmDialog';
import PageHeader from '../components/ui/PageHeader';
import SettingsLayout from '../components/layout/SettingsLayout';
import { ActiveBadge } from '../components/ui/StatusBadge';
const schema = z.object({
@@ -155,7 +156,7 @@ export default function StaffPage() {
];
return (
<>
<SettingsLayout active="staff">
<PageHeader
title="مدیریت پرسنل"
description="لیست پرسنل کلینیک / مطب"
@@ -239,7 +240,7 @@ export default function StaffPage() {
onCancel={() => setToggleTarget(null)}
loading={toggleMutation.isPending}
/>
</>
</SettingsLayout>
);
}