mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
|
import React from 'react';
|
||
|
import { Route, Switch } from 'react-router-dom';
|
||
|
import { ADD_SNAP_ACCOUNT_ROUTE } from '../../helpers/constants/routes';
|
||
|
import {
|
||
|
BackgroundColor,
|
||
|
Display,
|
||
|
JustifyContent,
|
||
|
} from '../../helpers/constants/design-system';
|
||
|
import { Box } from '../../components/component-library';
|
||
|
import NewSnapAccountPage from './new-snap-account-page';
|
||
|
import SnapAccountDetailPage from './snap-account-detail-page';
|
||
|
|
||
|
export default function AddSnapAccountPage() {
|
||
|
return (
|
||
|
<Box
|
||
|
display={Display.Flex}
|
||
|
justifyContent={JustifyContent.center}
|
||
|
backgroundColor={BackgroundColor.backgroundDefault}
|
||
|
marginLeft={10}
|
||
|
marginRight={10}
|
||
|
>
|
||
|
<Switch>
|
||
|
<>
|
||
|
<Route
|
||
|
exact
|
||
|
path={`${ADD_SNAP_ACCOUNT_ROUTE}/:snapId`}
|
||
|
component={SnapAccountDetailPage}
|
||
|
/>
|
||
|
<Route
|
||
|
exact
|
||
|
path={ADD_SNAP_ACCOUNT_ROUTE}
|
||
|
component={NewSnapAccountPage}
|
||
|
/>
|
||
|
</>
|
||
|
</Switch>
|
||
|
</Box>
|
||
|
);
|
||
|
}
|