/**
 * Copyright (c) 2021 BlockDev AG
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ import React from "react" ; import { observer } from "mobx-react-lite" ; import { Redirect , Route , Switch } from "react-router-dom" ; import { locations } from "../../../navigation/locations" ; import { IntroductionSteps } from "../../../onboarding/components/IntroductionSteps/IntroductionSteps" ; import { Welcome } from "../../../onboarding/components/Welcome/Welcome" ; import { IdentitySetup } from "../../../onboarding/components/IdentitySetup/IdentitySetup" ; import { IdentityBackup } from "../../../onboarding/components/IdentityBackup/IdentityBackup" ; import { InitialTopup } from "../../../onboarding/components/InitialTopup/InitialTopup" ; import { TopupView } from "../../consumer/Topup/TopupView" ; export const OnboardingView = observer ( ( ) => { return ( < > < Switch > < Route exact path = { locations . onboardingWelcome } > < Welcome /> < /Route> < Route path = { locations . onboardingIntro } > < IntroductionSteps /> < /Route> < Route exact path = { locations . onboardingIdentitySetup } > < IdentitySetup /> < /Route> < Route exact path = { locations . onboardingIdentityBackup } > < IdentityBackup /> < /Route> < Route path = { locations . onboardingTopupPrompt } > < InitialTopup /> < /Route> < Route path = { locations . onboardingWalletTopup } > < TopupView /> < /Route> < Redirect to = { locations . onboardingWelcome } / > < /Switch> < />); } ) ;