How did this go unnoticed for so long

This commit is contained in:
Regalijan 2024-03-21 12:54:37 -04:00
parent ee15d21a78
commit b22acae5dd
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -1,7 +1,6 @@
import {
Button,
Input,
Link,
Modal,
ModalBody,
ModalCloseButton,
@ -270,26 +269,26 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
</Button>
<input id="evidence" type="file" />
</ModalBody>
<ModalFooter>
<Button onClick={reset}>Cancel</Button>
<Button
colorScheme="blue"
disabled={
!(
Object.entries(actionMap).length &&
(document.getElementById("evidence") as HTMLInputElement).files
?.length
)
}
ml="8px"
onClick={async () => await submit()}
isLoading={loading}
loadingText="Submitting..."
>
Submit
</Button>
</ModalFooter>
</ModalContent>
<ModalFooter>
<Button onClick={reset}>Cancel</Button>
<Button
colorScheme="blue"
disabled={
!(
Object.entries(actionMap).length &&
(document.getElementById("evidence") as HTMLInputElement).files
?.length
)
}
ml="8px"
onClick={async () => await submit()}
isLoading={loading}
loadingText="Submitting..."
>
Submit
</Button>
</ModalFooter>
</Modal>
);
}