Skip to content

Commit

Permalink
logic implemented for both userb sign in and login
Browse files Browse the repository at this point in the history
  • Loading branch information
epixieme committed Sep 4, 2024
1 parent 9a5f0eb commit fd4d9f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/pages/UserBPages/UserBLoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ function UserBLoginPage() {

<img src="/logos/cm-logo.png" alt="Climate Mind Logo" style={styles.logo} />
<img src="/logos/slogan.png" alt="Climate Mind Logo" style={styles.slogan} />

<LoginForm isLoading={isLoading} onLogin={handleSubmit} onForgotPasswordClick={() => setShowPasswordResetModal(true)} />
<GoogleLogin navigateAfterLogin={navigateAfterLogin} text="Log In With Google" />
<div style={{ display: 'flex', flexDirection: 'column', gap: 19, justifyContent: 'center', alignItems: 'center' }}>
<LoginForm isLoading={isLoading} onLogin={handleSubmit} onForgotPasswordClick={() => setShowPasswordResetModal(true)} />
<div style={{ borderBottom: '1px solid #0000001A', height: 1, width: 205 }}></div>
<GoogleLogin navigateAfterLogin={navigateAfterLogin} text="Log In With Google" />
</div>
<RequestPasswordResetModal isOpen={showPasswordResetModal} onClose={() => setShowPasswordResetModal(false)} onSubmit={handlePasswordReset} />
</PageContent>
</Page>
Expand Down
8 changes: 5 additions & 3 deletions src/pages/UserBPages/UserBSignUpPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ function UserBSignUpPage() {
</CmTypography>
<CmButton variant="text" text="Login" onClick={() => navigate(ROUTES.LOGIN_PAGE)} style={styles.loginButton} />
</div>

<SignUpForm isLoading={isLoading} onSignUp={signUpHandler} />
<GoogleLogin navigateAfterLogin={navigateAfterLogin} text="Continue With Google" />
<div style={{ display: 'flex', flexDirection: 'column', gap: 19, justifyContent: 'center', alignItems: 'center' }}>
<SignUpForm isLoading={isLoading} onSignUp={signUpHandler} />
<div style={{ borderBottom: '1px solid #0000001A', height: 1, width: 205 }}></div>
<GoogleLogin navigateAfterLogin={navigateAfterLogin} text="Continue With Google" />
</div>
</PageContent>
</Page>
);
Expand Down

0 comments on commit fd4d9f3

Please sign in to comment.