fix: make modal don't close on overlay click; remove dismiss button in this modal.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
鲁树人 2023-06-11 23:25:49 +01:00
parent 2a75d63b9a
commit 3cb24b52ac

View File

@ -1,12 +1,10 @@
import {
Button,
Center,
Flex,
Modal,
ModalBody,
ModalCloseButton,
ModalContent,
ModalFooter,
ModalHeader,
ModalOverlay,
Tab,
@ -63,7 +61,7 @@ export function ImportFileModal({ onClose, show }: ImportFileModalProps) {
};
return (
<Modal isOpen={show} onClose={onClose} scrollBehavior="inside" size="xl">
<Modal isOpen={show} onClose={onClose} closeOnOverlayClick={false} scrollBehavior="inside" size="xl">
<ModalOverlay />
<ModalContent>
<ModalHeader></ModalHeader>
@ -88,12 +86,6 @@ export function ImportFileModal({ onClose, show }: ImportFileModalProps) {
</TabPanels>
</Flex>
</Flex>
<ModalFooter>
<Button mr={3} onClick={onClose}>
</Button>
</ModalFooter>
</ModalContent>
</Modal>
);