-
Notifications
You must be signed in to change notification settings - Fork 3.9k
show blocking screen for work email which has 2FA enabled #64625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c7ef5a1
show blocking screen for work email which has 2FA enabled
allgandalf a7eb837
Merge branch 'main' into issue/63704
allgandalf a6c67a4
rename the blocked view file
allgandalf adb1216
get back deleted code
allgandalf dba4d8c
fix work email not persisting on block screen
allgandalf 67adc77
show blocking screen for all failures of `addWorkEmail`
allgandalf b900571
Merge branch 'main' into issue/63704
allgandalf 05b5466
fix bottom padding for button
allgandalf 6ec213b
Merge branch 'issue/63704' of https://github.com/allgandalf/App into …
allgandalf e2ca6eb
Merge branch 'main' into issue/63704
allgandalf 2b5cf35
revert all changes in base onboarding email
allgandalf a73480b
fix onboarding work email blocking screen
allgandalf bb60f16
Merge branch 'Expensify:main' into issue/63704
allgandalf ac4b1a1
fix button overlap issue
allgandalf b26837b
Merge branch 'Expensify:main' into issue/63704
allgandalf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| 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 OnboardingMergingAccountBlockedViewProps = { | ||
| // Work email to display in the subtitle | ||
| workEmail: string | undefined; | ||
|
|
||
| // Whether the user is a VSB | ||
| isVsb: boolean | undefined; | ||
| }; | ||
|
|
||
| function OnboardingMergingAccountBlockedView({workEmail, isVsb}: OnboardingMergingAccountBlockedViewProps) { | ||
| const styles = useThemeStyles(); | ||
| const {translate} = useLocalize(); | ||
| return ( | ||
| <> | ||
| <BlockingView | ||
| icon={ToddBehindCloud} | ||
| iconWidth={variables.modalTopIconWidth} | ||
| iconHeight={variables.modalTopIconHeight} | ||
| title={translate('onboarding.mergeBlockScreen.title')} | ||
| subtitle={translate('onboarding.mergeBlockScreen.subtitle', {workEmail})} | ||
| subtitleStyle={[styles.colorMuted]} | ||
| /> | ||
| <Button | ||
| success | ||
| large | ||
| style={[styles.mb5]} | ||
| text={translate('common.buttonConfirm')} | ||
| onPress={() => { | ||
| setOnboardingErrorMessage(''); | ||
| if (isVsb) { | ||
| Navigation.navigate(ROUTES.ONBOARDING_ACCOUNTING.getRoute()); | ||
| return; | ||
| } | ||
| Navigation.navigate(ROUTES.ONBOARDING_PURPOSE.getRoute()); | ||
| }} | ||
| /> | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| OnboardingMergingAccountBlockedView.displayName = 'OnboardingMergingAccountBlockedView'; | ||
|
|
||
| export default OnboardingMergingAccountBlockedView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.