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

Function onClick

packages/shared/src/components/LoginButton.tsx:38–46  ·  view source on GitHub ↗
(copy: ButtonCopy)

Source from the content-addressed store, hash-verified

36 const { logEvent } = useLogContext();
37 const { showLogin } = useAuthContext();
38 const onClick = (copy: ButtonCopy) => {
39 logEvent(getLogEvent(copy));
40 showLogin({
41 trigger: AuthTriggers.MainButton,
42 options: {
43 isLogin: copy === ButtonCopy.Login,
44 },
45 });
46 };
47
48 return (
49 <span className={classNames('flex flex-row', className?.container)}>

Callers 1

LoginButtonFunction · 0.70

Calls 2

logEventFunction · 0.85
getLogEventFunction · 0.70

Tested by

no test coverage detected