From fc38a0190e68f5ab7b59b5b839627649086a5096 Mon Sep 17 00:00:00 2001 From: Maciej Szewczyk Date: Mon, 4 Mar 2024 21:32:26 +0100 Subject: [PATCH] fix rdi errors --- .../src/components/core/DropzoneField.tsx | 4 +-- .../RegistrationDataImportCreateDialog.tsx | 9 +++-- .../rdi/create/kobo/KoboProjectSelect.tsx | 3 +- .../create/xlsx/CreateImportFromXlsxForm.tsx | 34 +++++++++---------- .../rdi/create/xlsx/DropzoneField.tsx | 11 ++++-- .../RegistrationDetails.tsx | 1 + .../AdminAreaAutocompleteMultiple.tsx | 1 + 7 files changed, 38 insertions(+), 25 deletions(-) diff --git a/frontend/src/components/core/DropzoneField.tsx b/frontend/src/components/core/DropzoneField.tsx index c55b26c73a..03096c029d 100644 --- a/frontend/src/components/core/DropzoneField.tsx +++ b/frontend/src/components/core/DropzoneField.tsx @@ -44,8 +44,8 @@ export function DropzoneField({ const { getRootProps, getInputProps, acceptedFiles } = useDropzone({ disabled: loading, - accept: - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' as unknown as Accept, + //@ts-ignore + accept: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', onDrop, }); const acceptedFilename = diff --git a/frontend/src/components/rdi/create/RegistrationDataImportCreateDialog.tsx b/frontend/src/components/rdi/create/RegistrationDataImportCreateDialog.tsx index 5bd7fc2771..98e97485f8 100644 --- a/frontend/src/components/rdi/create/RegistrationDataImportCreateDialog.tsx +++ b/frontend/src/components/rdi/create/RegistrationDataImportCreateDialog.tsx @@ -1,5 +1,6 @@ /* eslint-disable react-hooks/exhaustive-deps */ import { + Box, Button, DialogContent, DialogTitle, @@ -110,9 +111,13 @@ export function RegistrationDataImportCreateDialog(): React.ReactElement { - {t('Import From')} + + {t('Import From')} + - {importTypeForm} + {importTypeForm}