From 486762cc3dec21c75d4fd131dd777e0d659255e9 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:51:01 -0400 Subject: [PATCH] Le formatting --- components/NewInfractionModal.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/NewInfractionModal.tsx b/components/NewInfractionModal.tsx index 36430c9..553c328 100644 --- a/components/NewInfractionModal.tsx +++ b/components/NewInfractionModal.tsx @@ -10,11 +10,11 @@ import { ModalOverlay, Select, Text, - useToast + useToast, } from "@chakra-ui/react"; import { useState } from "react"; -export default function(props: { isOpen: boolean; onClose: () => void }) { +export default function (props: { isOpen: boolean; onClose: () => void }) { const [loading, setLoading] = useState(false); const [punishment, setPunishment] = useState(""); const [user, setUser] = useState(""); @@ -24,7 +24,7 @@ export default function(props: { isOpen: boolean; onClose: () => void }) { if (!props.isOpen) return; const evidenceElement = document.getElementById( - "evidence" + "evidence", ) as HTMLInputElement; if (!evidenceElement.files && e.clipboardData?.files) { @@ -74,7 +74,7 @@ export default function(props: { isOpen: boolean; onClose: () => void }) { const postReq = await fetch("/api/infractions/new", { body: form, - method: "POST" + method: "POST", }); if (postReq.ok) { @@ -84,7 +84,7 @@ export default function(props: { isOpen: boolean; onClose: () => void }) { duration: 5000, isClosable: true, status: "success", - title: "Success" + title: "Success", }); props.onClose(); @@ -100,7 +100,7 @@ export default function(props: { isOpen: boolean; onClose: () => void }) { duration: 5000, isClosable: true, status: "error", - title: "Error" + title: "Error", }); }