From eba68065949d37692dd319835269d3300516d77f Mon Sep 17 00:00:00 2001 From: Marie <51697796+ijreilly@users.noreply.github.com> Date: Fri, 2 Aug 2024 15:20:41 +0200 Subject: [PATCH] Add skip option at sign-up (#6495) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #5925. Capture d’écran 2024-08-01 à 15 35 08 --- .../src/pages/onboarding/InviteTeam.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/twenty-front/src/pages/onboarding/InviteTeam.tsx b/packages/twenty-front/src/pages/onboarding/InviteTeam.tsx index 53a7b2124..320264cab 100644 --- a/packages/twenty-front/src/pages/onboarding/InviteTeam.tsx +++ b/packages/twenty-front/src/pages/onboarding/InviteTeam.tsx @@ -1,3 +1,6 @@ +import { useTheme } from '@emotion/react'; +import styled from '@emotion/styled'; +import { zodResolver } from '@hookform/resolvers/zod'; import { useCallback } from 'react'; import { Controller, @@ -5,9 +8,6 @@ import { useFieldArray, useForm, } from 'react-hook-form'; -import { useTheme } from '@emotion/react'; -import styled from '@emotion/styled'; -import { zodResolver } from '@hookform/resolvers/zod'; import { useRecoilValue } from 'recoil'; import { Key } from 'ts-key-enum'; import { IconCopy } from 'twenty-ui'; @@ -25,6 +25,7 @@ import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { LightButton } from '@/ui/input/button/components/LightButton'; import { MainButton } from '@/ui/input/button/components/MainButton'; import { TextInputV2 } from '@/ui/input/components/TextInputV2'; +import { ActionLink } from '@/ui/navigation/link/components/ActionLink'; import { AnimatedTranslation } from '@/ui/utilities/animation/components/AnimatedTranslation'; import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys'; import { @@ -54,6 +55,10 @@ const StyledButtonContainer = styled.div` width: 200px; `; +const StyledActionSkipLinkContainer = styled.div` + margin: ${({ theme }) => theme.spacing(3)} 0 0; +`; + const validationSchema = z.object({ emails: z.array( z.object({ email: z.union([z.literal(''), z.string().email()]) }), @@ -218,6 +223,9 @@ export const InviteTeam = () => { fullWidth /> + + Skip + ); };