From 34b5d6152a5ac2c4c3de18551b6b0a3d14d411db Mon Sep 17 00:00:00 2001 From: Sinan Date: Mon, 7 Oct 2024 10:03:06 +0530 Subject: [PATCH] appointments table reason cell srolling added --- .../view/table/DoctorAppointmentTable.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/client/components/view/table/DoctorAppointmentTable.tsx b/client/components/view/table/DoctorAppointmentTable.tsx index 84af51e0..5926587e 100644 --- a/client/components/view/table/DoctorAppointmentTable.tsx +++ b/client/components/view/table/DoctorAppointmentTable.tsx @@ -14,6 +14,7 @@ import { ButtonV2 } from "@/components/button/ButtonV2"; import { format } from 'date-fns' import { toast } from "@/components/ui/use-toast"; import { Badge } from "@/components/ui/badge"; +import { ScrollArea } from "@/components/ui/scroll-area"; const columns = [ @@ -52,7 +53,7 @@ export default function AppointmentTable({ page }: Props) { }); router.replace(`/doctor/appointments?page=1&status=${AppointmentStatus.PENDING}`); } - }, [notAcceptedAppointments,router]); + }, [notAcceptedAppointments, router]); const appointments = useMemo(() => data?.items || [], [data?.items]); @@ -138,12 +139,18 @@ export default function AppointmentTable({ page }: Props) { {format(new Date(appointment.appointmentDate!), "PPPP")} {appointment.appointmentType} - {appointment.reason} + + 30 ? "h-16" : ""}`} + > + {appointment.reason} + + - + {appointment.isPrescriptionAdded ? "Added" : "Not Added"}