You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
40 lines
1.0 KiB
4 years ago
|
import React, { Component } from 'react';
|
||
4 years ago
|
import { Switch, Route } from 'react-router-dom';
|
||
|
|
||
5 years ago
|
import {
|
||
|
NEW_ACCOUNT_ROUTE,
|
||
|
IMPORT_ACCOUNT_ROUTE,
|
||
|
CONNECT_HARDWARE_ROUTE,
|
||
4 years ago
|
} from '../../helpers/constants/routes';
|
||
|
import NewAccountCreateForm from './new-account.container';
|
||
|
import NewAccountImportForm from './import-account';
|
||
|
import ConnectHardwareForm from './connect-hardware';
|
||
5 years ago
|
|
||
|
export default class CreateAccountPage extends Component {
|
||
4 years ago
|
render() {
|
||
5 years ago
|
return (
|
||
|
<div className="new-account">
|
||
|
<div className="new-account__form">
|
||
|
<Switch>
|
||
|
<Route
|
||
5 years ago
|
exact
|
||
5 years ago
|
path={NEW_ACCOUNT_ROUTE}
|
||
|
component={NewAccountCreateForm}
|
||
|
/>
|
||
|
<Route
|
||
5 years ago
|
exact
|
||
5 years ago
|
path={IMPORT_ACCOUNT_ROUTE}
|
||
|
component={NewAccountImportForm}
|
||
|
/>
|
||
|
<Route
|
||
5 years ago
|
exact
|
||
5 years ago
|
path={CONNECT_HARDWARE_ROUTE}
|
||
|
component={ConnectHardwareForm}
|
||
|
/>
|
||
|
</Switch>
|
||
|
</div>
|
||
|
</div>
|
||
4 years ago
|
);
|
||
5 years ago
|
}
|
||
|
}
|