Skip to content

Commit

Permalink
feat(user): add loadingoverlay while logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
royschut committed Aug 2, 2021
1 parent 4201803 commit 6d28b91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/LoginForm/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import IconButton from '../IconButton/IconButton';
import Visibility from '../../icons/Visibility';
import VisibilityOff from '../../icons/VisibilityOff';
import FormFeedback from '../FormFeedback/FormFeedback';
import LoadingOverlay from '../LoadingOverlay/LoadingOverlay';

import styles from './LoginForm.module.scss';

Expand Down Expand Up @@ -61,6 +62,7 @@ const LoginForm: React.FC<Props> = ({ onSubmit, onChange, values, errors, submit
}
required
/>
{submitting && <LoadingOverlay transparentBackground inline />}
<Link className={styles.link} to={addQueryParam(history, 'u', 'forgot-password')}>
{t('login.forgot_password')}
</Link>
Expand Down

0 comments on commit 6d28b91

Please sign in to comment.