feat(appointments): add support for doctors without schedules and display relevant notice
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user