From 615e07bbba918ea1b1fc6dbd97d5785834645727 Mon Sep 17 00:00:00 2001 From: cade-exygy <131277283+cade-exygy@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:27:44 -0600 Subject: [PATCH] feat: create Sign Up Copy (#3880) * feat: create Sign Up Copy * fix: style fix * fix: reinstate success dto * fix: update icon margin --------- Co-authored-by: ColinBuyck Co-authored-by: cliu02 <32694266+cliu02@users.noreply.github.com> --- api/src/dtos/users/user-create.dto.ts | 4 +- .../src/components/account/SignUpBenefits.tsx | 2 +- .../account/SignUpBenefitsHeadingGroup.tsx | 16 + sites/public/src/pages/create-account.tsx | 348 ++++++++++-------- sites/public/src/pages/sign-in.tsx | 91 ++--- .../styles/sign-up-benefits.module.scss | 54 +++ 6 files changed, 301 insertions(+), 214 deletions(-) create mode 100644 sites/public/src/components/account/SignUpBenefitsHeadingGroup.tsx create mode 100644 sites/public/styles/sign-up-benefits.module.scss diff --git a/api/src/dtos/users/user-create.dto.ts b/api/src/dtos/users/user-create.dto.ts index c8d726505d..e746e30067 100644 --- a/api/src/dtos/users/user-create.dto.ts +++ b/api/src/dtos/users/user-create.dto.ts @@ -47,11 +47,11 @@ export class UserCreate extends OmitType(UserUpdate, [ email: string; @Expose() - @ApiProperty() + @ApiPropertyOptional() @IsEmail({}, { groups: [ValidationsGroupsEnum.default] }) @Match('email', { groups: [ValidationsGroupsEnum.default] }) @EnforceLowerCase() - emailConfirmation: string; + emailConfirmation?: string; @Expose() @Type(() => IdDTO) diff --git a/sites/public/src/components/account/SignUpBenefits.tsx b/sites/public/src/components/account/SignUpBenefits.tsx index 070292fd6e..7b18d551fb 100644 --- a/sites/public/src/components/account/SignUpBenefits.tsx +++ b/sites/public/src/components/account/SignUpBenefits.tsx @@ -17,7 +17,7 @@ const SignUpBenefits = (props: SignUpBenefitsProps) => { return (