From f699756d8f456e1dae5aeed430c73a6d882cde5f Mon Sep 17 00:00:00 2001 From: ronronscelestes Date: Mon, 28 Feb 2022 17:15:16 +0100 Subject: [PATCH] register checkbox back + updated snapshots --- .../AuthPage/components/Register/index.js | 16 +- .../components/Register/tests/index.test.js | 204 +++++++++++++++--- 2 files changed, 186 insertions(+), 34 deletions(-) diff --git a/packages/core/admin/admin/src/pages/AuthPage/components/Register/index.js b/packages/core/admin/admin/src/pages/AuthPage/components/Register/index.js index ea8871d58b..b4aa237964 100644 --- a/packages/core/admin/admin/src/pages/AuthPage/components/Register/index.js +++ b/packages/core/admin/admin/src/pages/AuthPage/components/Register/index.js @@ -10,7 +10,7 @@ import { Flex } from '@strapi/design-system/Flex'; import { Link } from '@strapi/design-system/Link'; import { Button } from '@strapi/design-system/Button'; import { TextInput } from '@strapi/design-system/TextInput'; -// import { Checkbox } from '@strapi/design-system/Checkbox'; +import { Checkbox } from '@strapi/design-system/Checkbox'; import { Grid, GridItem } from '@strapi/design-system/Grid'; import { Typography } from '@strapi/design-system/Typography'; import EyeStriked from '@strapi/icons/EyeStriked'; @@ -31,11 +31,9 @@ const CenteredBox = styled(Box)` text-align: center; `; -// Experiment only until the next release -// To uncomment then -// const A = styled.a` -// color: ${({ theme }) => theme.colors.primary600}; -// `; +const A = styled.a` + color: ${({ theme }) => theme.colors.primary600}; +`; const PasswordInput = styled(TextInput)` ::-ms-reveal { @@ -274,9 +272,7 @@ const Register = ({ fieldsToDisable, noSignin, onSubmit, schema }) => { })} type={confirmPasswordShown ? 'text' : 'password'} /> - {/* Experiment only until the next release - To uncomment then */} - {/* { handleChange({ target: { value: checked, name: 'news' } }); }} @@ -309,7 +305,7 @@ const Register = ({ fieldsToDisable, noSignin, onSubmit, schema }) => { ), } )} - */} +