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