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

feature/default_network_editable
David Walsh 3 years ago committed by GitHub
parent cca852d5ad
commit 84e0547ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/helpers/constants/routes.js
  2. 4
      ui/pages/onboarding-flow/onboarding-flow-switch/onboarding-flow-switch.js
  3. 7
      ui/pages/onboarding-flow/onboarding-flow.js

@ -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,
};

@ -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 }} />;

@ -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>

Loading…
Cancel
Save