diff --git a/components/NewInfractionModal.tsx b/components/NewInfractionModal.tsx index c659bb8..67859c4 100644 --- a/components/NewInfractionModal.tsx +++ b/components/NewInfractionModal.tsx @@ -5,6 +5,7 @@ import { ModalBody, ModalCloseButton, ModalContent, + ModalFooter, ModalHeader, ModalOverlay, Select, @@ -12,6 +13,17 @@ import { } from "@chakra-ui/react"; export default function (props: { isOpen: boolean; onClose: () => void }) { + function reset() { + ( + document.getElementById("punishment") as unknown as HTMLSelectElement + ).selectedIndex = -1; + (document.getElementById("user") as HTMLInputElement).value = ""; + (document.getElementById("evidence") as HTMLInputElement).value = ""; + + props.onClose(); + } + async function submit() {} + return ( @@ -38,6 +50,18 @@ export default function (props: { isOpen: boolean; onClose: () => void }) { + + + + );