mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 06:07:06 +01:00
694773f17a
Co-authored-by: georgewrmarshall <george.marshall@consensys.net> Co-authored-by: NidhiKJha <nidhi.kumari@consensys.net> Co-authored-by: montelaidev <monte.lai@consensys.net>
37 lines
917 B
JavaScript
37 lines
917 B
JavaScript
import React from 'react';
|
|
import { Route, Switch } from 'react-router-dom';
|
|
import Box from '../../components/ui/box';
|
|
|
|
import {
|
|
CONNECT_HARDWARE_ROUTE,
|
|
IMPORT_ACCOUNT_ROUTE,
|
|
NEW_ACCOUNT_ROUTE,
|
|
} from '../../helpers/constants/routes';
|
|
import ConnectHardwareForm from './connect-hardware';
|
|
import NewAccountImportForm from './import-account';
|
|
import NewAccountCreateForm from './new-account.container';
|
|
|
|
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>
|
|
);
|
|
}
|