From 7d8f9ac791a16d0a8a15b78c2e61e01197ce35da Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:49:33 -0400 Subject: [PATCH] Finish base of infraction modal --- components/NewInfractionModal.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 }) { + + + + );