Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Forgotten password on Login form on donation #1572

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/components/client/one-time-donation/LoginForm.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import React, { useContext, useState } from 'react'
import { useTranslation } from 'next-i18next'
import { signIn } from 'next-auth/react'
import { OneTimeDonation } from 'gql/donations'
import { useFormikContext } from 'formik'

import { Box, Button, CircularProgress, Grid, Typography } from '@mui/material'

import theme from 'common/theme'
import Google from 'common/icons/Google'
import { OneTimeDonation } from 'gql/donations'
import { routes } from 'common/routes'
import EmailField from 'components/common/form/EmailField'
import { signIn } from 'next-auth/react'
import PasswordField from 'components/common/form/PasswordField'
import LinkButton from 'components/common/LinkButton'
import { StepsContext } from './helpers/stepperContext'
import { AlertStore } from 'stores/AlertStore'
import PasswordField from 'components/common/form/PasswordField'

const onGoogleLogin = () => signIn('google')

Expand Down Expand Up @@ -62,6 +66,11 @@ function LoginForm() {
size="medium"
/>
</Grid>
<Grid container justifyContent="flex-end">
<LinkButton href={routes.forgottenPassword}>
{t('auth:account.forgotten-password')}
</LinkButton>
</Grid>
<Button
size="large"
color="primary"
Expand Down