mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
import React, { Component } from 'react';
|
|
import { Switch, Route } from 'react-router-dom';
|
|
|
|
import {
|
|
NEW_ACCOUNT_ROUTE,
|
|
IMPORT_ACCOUNT_ROUTE,
|
|
CONNECT_HARDWARE_ROUTE,
|
|
} from '../../helpers/constants/routes';
|
|
import NewAccountCreateForm from './new-account.container';
|
|
import NewAccountImportForm from './import-account';
|
|
import ConnectHardwareForm from './connect-hardware';
|
|
|
|
export default class CreateAccountPage extends Component {
|
|
render() {
|
|
return (
|
|
<div className="new-account">
|
|
<div className="new-account__form">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|