chore: fix modal close on escape

This commit is contained in:
Aman Harwara
2023-05-19 19:11:13 +05:30
parent 8f2cdc5839
commit d83e371022
21 changed files with 45 additions and 64 deletions

View File

@@ -237,7 +237,7 @@ const ChallengeModal: FunctionComponent<Props> = ({
})
return (
<ModalOverlay isOpen={true} key={challenge.id} ref={setModalElement}>
<ModalOverlay isOpen={true} key={challenge.id} ref={setModalElement} close={cancelChallenge}>
<Modal
title="Authenticate"
close={cancelChallenge}