1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

adds custody page route to account routes (#18985)

This commit is contained in:
António Regadas 2023-05-03 15:04:49 +01:00 committed by GitHub
parent 28b3490e7c
commit bf0a70dbba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,13 @@ import {
CONNECT_HARDWARE_ROUTE,
IMPORT_ACCOUNT_ROUTE,
NEW_ACCOUNT_ROUTE,
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
CUSTODY_ACCOUNT_ROUTE,
///: END:ONLY_INCLUDE_IN
} from '../../helpers/constants/routes';
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
import CustodyPage from '../institutional/custody';
///: END:ONLY_INCLUDE_IN
import ConnectHardwareForm from './connect-hardware';
import NewAccountImportForm from './import-account';
import NewAccountCreateForm from './new-account.container';
@ -30,6 +36,11 @@ export default function CreateAccountPage() {
path={CONNECT_HARDWARE_ROUTE}
component={ConnectHardwareForm}
/>
{
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
<Route exact path={CUSTODY_ACCOUNT_ROUTE} component={CustodyPage} />
///: END:ONLY_INCLUDE_IN
}
</Switch>
</Box>
);