MCPcopy Create free account
hub / github.com/dailydotdev/apps / openPrompt

Function openPrompt

packages/shared/src/hooks/useAuthForms.ts:38–44  ·  view source on GitHub ↗
(
    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) {

Callers 1

onDiscardAttemptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected