1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Use consistent naming for welcome route of onboarding (#12366)

This commit is contained in:
David Walsh 2021-10-18 10:12:57 -05:00 committed by GitHub
parent cca852d5ad
commit 84e0547ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -65,7 +65,7 @@ const ONBOARDING_IMPORT_MOBILE_ROUTE = '/onboarding/import-mobile';
const ONBOARDING_SECURE_YOUR_WALLET_ROUTE = '/onboarding/secure-your-wallet';
const ONBOARDING_PRIVACY_SETTINGS_ROUTE = '/onboarding/privacy-settings';
const ONBOARDING_PIN_EXTENSION_ROUTE = '/onboarding/pin-extension';
const ONBOARDING_WELCOME = '/onboarding/welcome';
const ONBOARDING_WELCOME_ROUTE = '/onboarding/welcome';
const CONFIRM_TRANSACTION_ROUTE = '/confirm-transaction';
const CONFIRM_SEND_ETHER_PATH = '/send-ether';
@ -226,5 +226,5 @@ export {
ONBOARDING_COMPLETION_ROUTE,
ONBOARDING_UNLOCK_ROUTE,
ONBOARDING_PIN_EXTENSION_ROUTE,
ONBOARDING_WELCOME,
ONBOARDING_WELCOME_ROUTE,
};

View File

@ -6,7 +6,7 @@ import {
ONBOARDING_COMPLETION_ROUTE,
ONBOARDING_UNLOCK_ROUTE,
LOCK_ROUTE,
ONBOARDING_WELCOME,
ONBOARDING_WELCOME_ROUTE,
} from '../../../helpers/constants/routes';
import {
getCompletedOnboarding,
@ -34,7 +34,7 @@ export default function OnboardingFlowSwitch() {
}
if (!isInitialized) {
return <Redirect to={{ pathname: ONBOARDING_WELCOME }} />;
return <Redirect to={{ pathname: ONBOARDING_WELCOME_ROUTE }} />;
}
return <Redirect to={{ pathname: ONBOARDING_UNLOCK_ROUTE }} />;

View File

@ -7,7 +7,7 @@ import {
ONBOARDING_REVIEW_SRP_ROUTE,
ONBOARDING_CONFIRM_SRP_ROUTE,
ONBOARDING_UNLOCK_ROUTE,
ONBOARDING_WELCOME,
ONBOARDING_WELCOME_ROUTE,
DEFAULT_ROUTE,
ONBOARDING_SECURE_YOUR_WALLET_ROUTE,
ONBOARDING_PRIVACY_SETTINGS_ROUTE,
@ -152,7 +152,10 @@ export default function OnboardingFlow() {
path={ONBOARDING_COMPLETION_ROUTE}
component={CreationSuccessful}
/>
<Route path={ONBOARDING_WELCOME} component={OnboardingWelcome} />
<Route
path={ONBOARDING_WELCOME_ROUTE}
component={OnboardingWelcome}
/>
<Route exact path="*" component={OnboardingFlowSwitch} />
</Switch>
</div>