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

Function onEmailClick

packages/shared/src/components/auth/AuthDefault.tsx:133–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }, [shouldLogin]);
132
133 const onEmailClick = () => {
134 logEvent({
135 event_name: 'click',
136 target_type: shouldLogin
137 ? AuthEventNames.LoginProvider
138 : AuthEventNames.SignUpProvider,
139 target_id: 'email',
140 extra: JSON.stringify({ trigger }),
141 });
142
143 if (shouldLogin) {
144 resolvedLoginHint[1](null);
145 setIsEmailLogin(true);
146 return;
147 }
148
149 onSignup?.('');
150 };
151
152 const toggleLogin = () => {
153 focusFirstSocialLink();

Callers

nothing calls this directly

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected