diff --git a/apps/backoffice/src/app/features/exam/pages/ExamPage.tsx b/apps/backoffice/src/app/features/exam/pages/ExamPage.tsx index f49686075..ed0a50c69 100644 --- a/apps/backoffice/src/app/features/exam/pages/ExamPage.tsx +++ b/apps/backoffice/src/app/features/exam/pages/ExamPage.tsx @@ -27,11 +27,10 @@ import { IconTrash, IconPlus, IconInfoCircle, - IconCalendar, IconClipboardList, IconDetails, } from "@tabler/icons-react"; -import { notify, useErrorHandler, AdvancedTable, useServerTable, ModalFooter, type AdvancedColumn } from "@ema-platform/ui"; +import { notify, useErrorHandler, AdvancedTable, useServerTable, ModalFooter, AmharicDatePicker, type AdvancedColumn } from "@ema-platform/ui"; import { useGetCertificationsQuery } from "../../certification/api/certification-api"; import { useGetExamsQuery, @@ -194,13 +193,12 @@ function ExamForm({ autosize minRows={2} /> - setDate(e.currentTarget.value)} + onChange={setDate} + dateFormat="date" size="sm" - leftSection={} required /> )} - setFacet({ submittedFrom: e.currentTarget.value || undefined })} + onChange={(v) => setFacet({ submittedFrom: v || undefined })} + dateFormat="date" /> - setFacet({ submittedTo: e.currentTarget.value || undefined })} + onChange={(v) => setFacet({ submittedTo: v || undefined })} + dateFormat="date" /> {hasFacets && (