mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
UX: Ensure 'Connect Hardware' route is functioning properly (#19612)
* UX: Ensure 'Connect Hardware' route is functioning properly * restore create-account page --------- Co-authored-by: Bernardo Garces Chapero <bernardo.chapero@consensys.net>
This commit is contained in:
parent
a0e6737848
commit
d2f0b2f785
@ -25,6 +25,7 @@ const RESTORE_VAULT_ROUTE = '/restore-vault';
|
|||||||
const IMPORT_TOKEN_ROUTE = '/import-token';
|
const IMPORT_TOKEN_ROUTE = '/import-token';
|
||||||
const CONFIRM_IMPORT_TOKEN_ROUTE = '/confirm-import-token';
|
const CONFIRM_IMPORT_TOKEN_ROUTE = '/confirm-import-token';
|
||||||
const CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE = '/confirm-add-suggested-token';
|
const CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE = '/confirm-add-suggested-token';
|
||||||
|
const NEW_ACCOUNT_ROUTE = '/new-account';
|
||||||
const CONNECT_HARDWARE_ROUTE = '/new-account/connect';
|
const CONNECT_HARDWARE_ROUTE = '/new-account/connect';
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
||||||
const CUSTODY_ACCOUNT_ROUTE = '/new-account/custody';
|
const CUSTODY_ACCOUNT_ROUTE = '/new-account/custody';
|
||||||
@ -127,6 +128,7 @@ const PATH_NAME_MAP = {
|
|||||||
[IMPORT_TOKEN_ROUTE]: 'Import Token Page',
|
[IMPORT_TOKEN_ROUTE]: 'Import Token Page',
|
||||||
[CONFIRM_IMPORT_TOKEN_ROUTE]: 'Confirm Import Token Page',
|
[CONFIRM_IMPORT_TOKEN_ROUTE]: 'Confirm Import Token Page',
|
||||||
[CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE]: 'Confirm Add Suggested Token Page',
|
[CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE]: 'Confirm Add Suggested Token Page',
|
||||||
|
[NEW_ACCOUNT_ROUTE]: 'New Account Page',
|
||||||
[CONNECT_HARDWARE_ROUTE]: 'Connect Hardware Wallet Page',
|
[CONNECT_HARDWARE_ROUTE]: 'Connect Hardware Wallet Page',
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
||||||
[INSTITUTIONAL_FEATURES_DONE_ROUTE]: 'Institutional Features Done Page',
|
[INSTITUTIONAL_FEATURES_DONE_ROUTE]: 'Institutional Features Done Page',
|
||||||
@ -190,6 +192,7 @@ export {
|
|||||||
IMPORT_TOKEN_ROUTE,
|
IMPORT_TOKEN_ROUTE,
|
||||||
CONFIRM_IMPORT_TOKEN_ROUTE,
|
CONFIRM_IMPORT_TOKEN_ROUTE,
|
||||||
CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE,
|
CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE,
|
||||||
|
NEW_ACCOUNT_ROUTE,
|
||||||
CONNECT_HARDWARE_ROUTE,
|
CONNECT_HARDWARE_ROUTE,
|
||||||
SEND_ROUTE,
|
SEND_ROUTE,
|
||||||
TOKEN_DETAILS,
|
TOKEN_DETAILS,
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
@import 'connected-sites/index';
|
@import 'connected-sites/index';
|
||||||
@import 'connected-accounts/index';
|
@import 'connected-accounts/index';
|
||||||
@import 'connected-sites/index';
|
@import 'connected-sites/index';
|
||||||
|
@import 'create-account/connect-hardware/index';
|
||||||
@import "institutional/connect-custody/index";
|
@import "institutional/connect-custody/index";
|
||||||
@import "institutional/custody/index";
|
@import "institutional/custody/index";
|
||||||
@import "institutional/institutional-entity-done-page/index";
|
@import "institutional/institutional-entity-done-page/index";
|
||||||
|
@ -22,6 +22,7 @@ import ImportTokenPage from '../import-token';
|
|||||||
import AddNftPage from '../add-nft';
|
import AddNftPage from '../add-nft';
|
||||||
import ConfirmImportTokenPage from '../confirm-import-token';
|
import ConfirmImportTokenPage from '../confirm-import-token';
|
||||||
import ConfirmAddSuggestedTokenPage from '../confirm-add-suggested-token';
|
import ConfirmAddSuggestedTokenPage from '../confirm-add-suggested-token';
|
||||||
|
import CreateAccountPage from '../create-account/create-account.component';
|
||||||
import Loading from '../../components/ui/loading-screen';
|
import Loading from '../../components/ui/loading-screen';
|
||||||
import LoadingNetwork from '../../components/app/loading-network-screen';
|
import LoadingNetwork from '../../components/app/loading-network-screen';
|
||||||
import { Modal } from '../../components/app/modals';
|
import { Modal } from '../../components/app/modals';
|
||||||
@ -62,6 +63,7 @@ import {
|
|||||||
CONNECT_ROUTE,
|
CONNECT_ROUTE,
|
||||||
DEFAULT_ROUTE,
|
DEFAULT_ROUTE,
|
||||||
LOCK_ROUTE,
|
LOCK_ROUTE,
|
||||||
|
NEW_ACCOUNT_ROUTE,
|
||||||
RESTORE_VAULT_ROUTE,
|
RESTORE_VAULT_ROUTE,
|
||||||
REVEAL_SEED_ROUTE,
|
REVEAL_SEED_ROUTE,
|
||||||
SEND_ROUTE,
|
SEND_ROUTE,
|
||||||
@ -324,6 +326,7 @@ export default class Routes extends Component {
|
|||||||
{
|
{
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
}
|
}
|
||||||
|
<Authenticated path={NEW_ACCOUNT_ROUTE} component={CreateAccountPage} />
|
||||||
<Authenticated
|
<Authenticated
|
||||||
path={`${CONNECT_ROUTE}/:id`}
|
path={`${CONNECT_ROUTE}/:id`}
|
||||||
component={PermissionsConnect}
|
component={PermissionsConnect}
|
||||||
|
Loading…
Reference in New Issue
Block a user