2023-03-06 18:48:28 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { Route, Switch } from 'react-router-dom';
|
|
|
|
import Box from '../../components/ui/box';
|
2021-04-26 20:05:48 +02:00
|
|
|
|
2019-10-29 17:12:41 +01:00
|
|
|
import {
|
|
|
|
CONNECT_HARDWARE_ROUTE,
|
2023-03-06 18:48:28 +01:00
|
|
|
IMPORT_ACCOUNT_ROUTE,
|
|
|
|
NEW_ACCOUNT_ROUTE,
|
2021-02-04 19:15:23 +01:00
|
|
|
} from '../../helpers/constants/routes';
|
|
|
|
import ConnectHardwareForm from './connect-hardware';
|
2023-03-06 18:48:28 +01:00
|
|
|
import NewAccountImportForm from './import-account';
|
|
|
|
import NewAccountCreateForm from './new-account.container';
|
2019-10-29 17:12:41 +01:00
|
|
|
|
2023-03-06 18:48:28 +01:00
|
|
|
export default function CreateAccountPage() {
|
|
|
|
return (
|
|
|
|
<Box className="new-account">
|
|
|
|
<Switch>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path={NEW_ACCOUNT_ROUTE}
|
|
|
|
component={NewAccountCreateForm}
|
|
|
|
/>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path={IMPORT_ACCOUNT_ROUTE}
|
|
|
|
component={NewAccountImportForm}
|
|
|
|
/>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path={CONNECT_HARDWARE_ROUTE}
|
|
|
|
component={ConnectHardwareForm}
|
|
|
|
/>
|
|
|
|
</Switch>
|
|
|
|
</Box>
|
|
|
|
);
|
2019-10-29 17:12:41 +01:00
|
|
|
}
|