feat(settings): render doctor/clinic settings pages inside the settings shell

Wrap the existing settings-area pages — doctor profile (مدیریت پزشک),
insurance pricing (بیمه), payment report (پرداخت), SMS wallet (پیامک‌ها),
secretaries (منشی) and clinic info (مطب) — in SettingsLayout so they appear
under the settings sub-navigation like the Figma design, with the matching
menu item highlighted. Wire the doctor/clinic menu entries to their routes.

The نوبت‌دهی / برچسب‌ها / حساب کاربری entries stay as disabled placeholders
until they have their own pages/designs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-13 13:44:02 +03:30
co-authored by Claude Opus 4.8
parent 7020d3888e
commit 0b3aed0813
9 changed files with 81 additions and 10 deletions
+6 -3
View File
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import SettingsLayout from '../components/layout/SettingsLayout';
import { z } from 'zod';
import { toast } from 'sonner';
import {
@@ -565,8 +566,10 @@ function SmsWalletPageInner() {
export default function SmsWalletPage() {
return (
<FeatureGate feature="sms_panel">
<SmsWalletPageInner />
</FeatureGate>
<SettingsLayout active="sms">
<FeatureGate feature="sms_panel">
<SmsWalletPageInner />
</FeatureGate>
</SettingsLayout>
);
}