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

Function onClick

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

Source from the content-addressed store, hash-verified

39 const { logEvent } = useLogContext();
40 const { showLogin } = useAuthContext();
41 const onClick = (copy: ButtonCopy) => {
42 logEvent(getLogEvent(copy));
43 showLogin({
44 trigger: AuthTriggers.MainButton,
45 options: {
46 isLogin: copy === ButtonCopy.Login,
47 },
48 });
49 };
50
51 return (
52 <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