Function
openPrompt
(
e: React.MouseEvent | React.KeyboardEvent | React.FormEvent,
)
Source from the content-addressed store, hash-verified
| 36 | const formRef = useRef<HTMLFormElement>(); |
| 37 | |
| 38 | const openPrompt = async ( |
| 39 | e: React.MouseEvent | React.KeyboardEvent | React.FormEvent, |
| 40 | ) => { |
| 41 | if (await showPrompt(promptOptions)) { |
| 42 | onDiscard(e); |
| 43 | } |
| 44 | }; |
| 45 | |
| 46 | const onDiscardAttempt: CloseAuthModalFunc = (e, forceClose = false) => { |
| 47 | if (forceClose || !formRef?.current) { |
Tested by
no test coverage detected