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

Function renderAuthAction

packages/shared/src/components/auth/AuthSignBack.tsx:80–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 const renderAuthAction = () => {
81 if (provider === 'password') {
82 if (!loginFormProps) {
83 return null;
84 }
85
86 return (
87 <LoginForm
88 {...loginFormProps}
89 email={loginFormProps.email ?? signBack.email}
90 />
91 );
92 }
93
94 if (!socialProvider) {
95 return null;
96 }
97
98 return (
99 <SignBackButton
100 disabled={isProviderLoading}
101 signBack={signBack}
102 provider={socialProvider}
103 onClick={handleProviderClick}
104 />
105 );
106 };
107
108 return (
109 <span className="flex flex-1 flex-col">

Callers 1

AuthSignBackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected