Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix secondary button and actually trigger file prompt
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 387f78b commit 477fe04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/NewInfractionModal.tsx
Expand Up @@ -92,13 +92,13 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
<br />
<br />
<Text>Evidence</Text>
<Button>Select Files</Button>
<Button onClick={() => document.getElementById("evidence")?.click()}>
Select Files
</Button>
<input id="evidence" multiple type="file" />
</ModalBody>
<ModalFooter>
<Button colorScheme="ghost" onClick={reset}>
Cancel
</Button>
<Button onClick={reset}>Cancel</Button>
<Button
colorScheme="blue"
ml="8px"
Expand Down

0 comments on commit 477fe04

Please sign in to comment.