feat(appointments): add support for doctors without schedules and display relevant notice

This commit is contained in:
hamed
2026-08-04 10:26:36 +03:30
parent 654c1e8303
commit 41b3109478
3 changed files with 145 additions and 16 deletions
@@ -5,6 +5,8 @@
export interface DoctorTab {
uuid: string;
name: string;
/** برچسب کوچکِ کنار نام — مثلاً «بدون ساعت کاری». */
note?: string;
}
export default function DoctorTabs({
@@ -38,6 +40,15 @@ export default function DoctorTabs({
}}
>
{d.name}
{d.note && (
<span style={{
marginRight: 6, fontSize: 10.5, fontWeight: 500, padding: '2px 6px',
borderRadius: 'var(--r-pill)', background: 'var(--warning-bg)', color: 'var(--warning)',
verticalAlign: 'middle',
}}>
{d.note}
</span>
)}
{active && (
<span style={{
position: 'absolute', bottom: -1, left: 0, right: 0, height: 3,