Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
How did this go unnoticed for so long
  • Loading branch information
regalijan committed Mar 21, 2024
1 parent ee15d21 commit b22acae
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions components/NewGameBan.tsx
@@ -1,7 +1,6 @@
import {
Button,
Input,
Link,
Modal,
ModalBody,
ModalCloseButton,
Expand Down Expand Up @@ -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>
);
}

0 comments on commit b22acae

Please sign in to comment.