From c7ef5a17dbdeebe2676807c956dfbe534da0edf6 Mon Sep 17 00:00:00 2001 From: allgandalf Date: Fri, 20 Jun 2025 11:23:11 +0530 Subject: [PATCH 1/9] show blocking screen for work email which has 2FA enabled --- src/CONST/index.ts | 2 + .../OnboardingMergingAccountBlocked.tsx | 48 +++++ .../BaseOnboardingWorkEmail.tsx | 196 ++++++++++-------- .../BaseOnboardingWorkEmailValidation.tsx | 29 +-- 4 files changed, 158 insertions(+), 117 deletions(-) create mode 100644 src/components/OnboardingMergingAccountBlocked.tsx diff --git a/src/CONST/index.ts b/src/CONST/index.ts index 9ac5ef673e9a..80fc2b41cec3 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -7226,6 +7226,8 @@ const CONST = { REGISTER_FOR_WEBINAR: 'registerForWebinar', }, + ONBOARDING_2FA_REQUIRED_ERROR_MESSAGE: '401 work account uses 2FA', + SCHEDULE_CALL_STATUS: { CREATED: 'created', RESCHEDULED: 'rescheduled', diff --git a/src/components/OnboardingMergingAccountBlocked.tsx b/src/components/OnboardingMergingAccountBlocked.tsx new file mode 100644 index 000000000000..f06ee73aa337 --- /dev/null +++ b/src/components/OnboardingMergingAccountBlocked.tsx @@ -0,0 +1,48 @@ +import React from 'react'; +import useLocalize from '@hooks/useLocalize'; +import useThemeStyles from '@hooks/useThemeStyles'; +import Navigation from '@libs/Navigation/Navigation'; +import variables from '@styles/variables'; +import {setOnboardingErrorMessage} from '@userActions/Welcome'; +import ROUTES from '@src/ROUTES'; +import BlockingView from './BlockingViews/BlockingView'; +import Button from './Button'; +import {ToddBehindCloud} from './Icon/Illustrations'; + +type OnboardingMergingAccountBlockedProps = { + // Work email to display in the subtitle + workEmail: string | undefined; + isVsb: boolean | undefined; +}; +function OnboardingMergingAccountBlocked({workEmail, isVsb}: OnboardingMergingAccountBlockedProps) { + const styles = useThemeStyles(); + const {translate} = useLocalize(); + return ( + <> + +