Reset Your Password
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
{confirmPasswordError && (
- Passwords don’t match. Please try again
+ The passwords entered do not match. Please double-check and re-enter
+ your passwords.
)}
@@ -124,13 +178,7 @@ function ResetPassword({ version }: ResetPasswordProps): JSX.Element {
htmlType="submit"
data-attr="signup"
loading={loading}
- disabled={
- loading ||
- !form.getFieldValue('password') ||
- !form.getFieldValue('confirmPassword') ||
- confirmPasswordError ||
- token === null
- }
+ disabled={!isValidPassword || loading}
>
Get Started
diff --git a/frontend/src/container/ResetPassword/styles.ts b/frontend/src/container/ResetPassword/styles.ts
index e59a453695..f71860382e 100644
--- a/frontend/src/container/ResetPassword/styles.ts
+++ b/frontend/src/container/ResetPassword/styles.ts
@@ -4,8 +4,12 @@ import styled from 'styled-components';
export const FormWrapper = styled(Card)`
display: flex;
justify-content: center;
- max-width: 432px;
+ width: 432px;
flex: 1;
+
+ .ant-card-body {
+ width: 100%;
+ }
`;
export const ButtonContainer = styled.div`