diff --git a/src/pages/Appointments/AppointmentsPage.tsx b/src/pages/Appointments/AppointmentsPage.tsx index 2a9fd13d298..dfb7c5e1401 100644 --- a/src/pages/Appointments/AppointmentsPage.tsx +++ b/src/pages/Appointments/AppointmentsPage.tsx @@ -399,53 +399,52 @@ export default function AppointmentsPage(props: { facilityId?: string }) { : t("no_results")} - + + setQParams({ + ...qParams, + practitioner: null, + slot: null, + }) + } + className="cursor-pointer w-full" + > + + {t("show_all")} + {!qParams.practitioner && ( + + )} + + + {schedulableUsersQuery.data?.users.map((user) => ( setQParams({ ...qParams, - practitioner: null, + practitioner: user.username, slot: null, }) } - className="cursor-pointer" + className="cursor-pointer w-full" > - {t("show_all")} - {!qParams.practitioner && ( + + + {formatName(user)} + + {user.user_type} + + + {qParams.practitioner === user.username && ( )} - - {schedulableUsersQuery.data?.users.map((user) => ( - - - setQParams({ - ...qParams, - practitioner: user.username, - slot: null, - }) - } - className="cursor-pointer" - > -
- - {formatName(user)} - - {user.user_type} - -
- {qParams.practitioner === user.username && ( - - )} -
-
))}