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

Function getForm

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

Source from the content-addressed store, hash-verified

179 };
180
181 const getForm = () => {
182 if (isEmailLoginScreen || (disableRegistration && !disablePassword)) {
183 return (
184 <LoginForm
185 isReady={isReady}
186 isLoading={isLoading}
187 email={loginEmail || undefined}
188 loginButton={loginButton}
189 autoFocus={!isStartups}
190 aboveFooter={!simplified && !disableRegistration}
191 loginButtonVariant={
192 !isEmailLoginScreen && providers.length
193 ? ButtonVariant.Secondary
194 : ButtonVariant.Primary
195 }
196 loginHint={resolvedLoginHint}
197 onPasswordLogin={onPasswordLogin}
198 onForgotPassword={onForgotPassword}
199 isStartups={isStartups}
200 onSignup={() => {
201 setIsEmailLogin(false);
202 setShouldLogin(false);
203 }}
204 />
205 );
206 }
207
208 return null;
209 };
210
211 const form = getForm();
212 const isSignup = !shouldLogin && !disableRegistration;

Callers 1

AuthDefaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected