mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-09-08 20:38:19 +00:00
Add AttachmentsModal and refactor MedicalVerificationPage with AdvancedTable integration
This commit is contained in:
@@ -156,7 +156,7 @@ const EMPTY_SEA_SERVICE = {
|
||||
};
|
||||
|
||||
function SeaServiceTab() {
|
||||
const { data: records, isLoading } = useGetMySeaServiceRecordsQuery();
|
||||
const { data: records, isLoading, refetch } = useGetMySeaServiceRecordsQuery();
|
||||
const { data: seaTime } = useGetMySeaTimeQuery();
|
||||
const [createRecord, { isLoading: creating }] =
|
||||
useCreateSeaServiceRecordMutation();
|
||||
@@ -349,6 +349,7 @@ function SeaServiceTab() {
|
||||
onPageChange={setPageIndex}
|
||||
pageSize={pageSize}
|
||||
isLoading={isLoading}
|
||||
refresh={refetch}
|
||||
/>
|
||||
</Card>
|
||||
)}
|
||||
@@ -461,7 +462,7 @@ const EMPTY_MEDICAL = {
|
||||
};
|
||||
|
||||
function MedicalTab() {
|
||||
const { data: certificates, isLoading } = useGetMyMedicalCertificatesQuery();
|
||||
const { data: certificates, isLoading, refetch } = useGetMyMedicalCertificatesQuery();
|
||||
const [createCertificate, { isLoading: creating }] =
|
||||
useCreateMedicalCertificateMutation();
|
||||
const [updateCertificate, { isLoading: updating }] =
|
||||
@@ -654,6 +655,7 @@ function MedicalTab() {
|
||||
onPageChange={setPageIndex}
|
||||
pageSize={pageSize}
|
||||
isLoading={isLoading}
|
||||
refresh={refetch}
|
||||
/>
|
||||
</Card>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user