Skip to content

Commit

Permalink
scroller added in Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
modamaan committed Jan 8, 2025
1 parent 6820a87 commit 06c6866
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/components/Schedule/Appointments/AppointmentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,13 @@ export default function AppointmentsPage(props: { facilityId?: string }) {
<ScrollBar orientation="horizontal" />
</ScrollArea>
) : (
<ScrollArea>
<AppointmentRow
facilityId={facilityId}
practitioner={qParams.practitioner}
slot={qParams.slot}
date={date}
search={qParams.search?.toLowerCase()}
/>
<ScrollBar orientation="horizontal" />
</ScrollArea>
<AppointmentRow
facilityId={facilityId}
practitioner={qParams.practitioner}
slot={qParams.slot}
date={date}
search={qParams.search?.toLowerCase()}
/>
)}
</Page>
);
Expand Down Expand Up @@ -482,6 +479,7 @@ function AppointmentRow(props: {
<div className={cn(!data && "animate-pulse")}>
<Tabs
value={status}
className="w-full overflow-scroll"
onValueChange={(value) => setStatus(value as Appointment["status"])}
>
<TabsList>
Expand Down

0 comments on commit 06c6866

Please sign in to comment.