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

Function onClose

packages/shared/src/components/auth/AuthModal.tsx:33–39  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

31 const { user, closeLogin, logout, loginState } = useAuthContext();
32
33 const onClose: CloseAuthModalFunc = (e) => {
34 logEvent({
35 event_name: AuthEventNames.CloseSignUp,
36 extra: JSON.stringify({ trigger, screenValue }),
37 });
38 onRequestClose?.(e as React.MouseEvent);
39 };
40
41 const closeAndLogout: CloseAuthModalFunc = (e) => {
42 if (user && !user.username) {

Callers 15

closeAndLogoutFunction · 0.70
onProfileSuccessFunction · 0.70
PostUpgradeToPlusFunction · 0.50
handleOverlayClickFunction · 0.50
BaseDrawerFunction · 0.50
AnimatedDrawerFunction · 0.50
useAccountPageItemsFunction · 0.50
PromotionTourFunction · 0.50
SquadTourFunction · 0.50
handleClickOutsideFunction · 0.50
onSwipedRightFunction · 0.50
onSharedSuccessfullyFunction · 0.50

Calls 2

logEventFunction · 0.85
onRequestCloseFunction · 0.50

Tested by

no test coverage detected