1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: passwordchecker

This commit is contained in:
Fredrik Oseberg 2021-05-31 13:55:20 +02:00
parent 0a020c6b3e
commit 281e027c8a
4 changed files with 29 additions and 20 deletions

View File

@ -1,6 +1,13 @@
import { makeStyles } from '@material-ui/styles';
import { makeStyles } from '@material-ui/core/styles';
export const useStyles = makeStyles(theme => ({
resetPassword: {
width: '350px',
maxWidth: '350px',
[theme.breakpoints.down('xs')]: {
width: '100%',
},
},
container: {
display: 'flex',
},

View File

@ -17,24 +17,26 @@ const ResetPassword = () => {
return (
<div ref={ref}>
<StandaloneLayout>
<ConditionallyRender
condition={invalidToken}
show={<InvalidToken />}
elseShow={
<ResetPasswordDetails
token={token}
setLoading={setLoading}
>
<Typography
variant="h2"
className={styles.title}
data-loading
<div className={styles.resetPassword}>
<ConditionallyRender
condition={invalidToken}
show={<InvalidToken />}
elseShow={
<ResetPasswordDetails
token={token}
setLoading={setLoading}
>
Reset password
</Typography>
</ResetPasswordDetails>
}
/>
<Typography
variant="h2"
className={styles.title}
data-loading
>
Reset password
</Typography>
</ResetPasswordDetails>
}
/>
</div>
</StandaloneLayout>
</div>
);

View File

@ -12,7 +12,7 @@ const ResetPasswordDetails: FC<IResetPasswordDetails> = ({
setLoading,
}) => {
return (
<div>
<div style={{ width: '100%' }}>
{children}
<ResetPasswordForm token={token} setLoading={setLoading} />
</div>

View File

@ -28,7 +28,7 @@ const NUMBER_ERROR = 'The password must contain at least one number.';
const SYMBOL_ERROR =
'The password must contain at least one special character.';
const UPPERCASE_ERROR =
'The password must contain at least one uppercase letter';
'The password must contain at least one uppercase letter.';
const LOWERCASE_ERROR =
'The password must contain at least one lowercase letter.';