mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Created new route for connections (#20556)
* created new route for connections * remove unnecessary code * added connections component * fixed connections route * moved connections to pages in multichain * moved connections route to multichain feature flag
This commit is contained in:
parent
b8b94c2c1f
commit
215430236e
@ -0,0 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
export const Connections = () => {
|
||||
return <div></div>;
|
||||
};
|
1
ui/components/multichain/pages/connections/index.js
Normal file
1
ui/components/multichain/pages/connections/index.js
Normal file
@ -0,0 +1 @@
|
||||
export { Connections } from './connections';
|
1
ui/components/multichain/pages/index.js
Normal file
1
ui/components/multichain/pages/index.js
Normal file
@ -0,0 +1 @@
|
||||
export { Connections } from './connections';
|
@ -37,6 +37,7 @@ const INTERACTIVE_REPLACEMENT_TOKEN_PAGE =
|
||||
'/interactive-replacement-token-page';
|
||||
///: END:ONLY_INCLUDE_IN
|
||||
const SEND_ROUTE = '/send';
|
||||
const CONNECTIONS = '/connections';
|
||||
const TOKEN_DETAILS = '/token-details';
|
||||
const CONNECT_ROUTE = '/connect';
|
||||
const CONNECT_CONFIRM_PERMISSIONS_ROUTE = '/confirm-permissions';
|
||||
@ -145,6 +146,7 @@ const PATH_NAME_MAP = {
|
||||
[INTERACTIVE_REPLACEMENT_TOKEN_PAGE]: 'Interactive replacement token page',
|
||||
///: END:ONLY_INCLUDE_IN
|
||||
[SEND_ROUTE]: 'Send Page',
|
||||
[CONNECTIONS]: 'Connections',
|
||||
[`${TOKEN_DETAILS}/:address`]: 'Token Details Page',
|
||||
[`${CONNECT_ROUTE}/:id`]: 'Connect To Site Confirmation Page',
|
||||
[`${CONNECT_ROUTE}/:id${CONNECT_CONFIRM_PERMISSIONS_ROUTE}`]:
|
||||
@ -202,6 +204,7 @@ export {
|
||||
CONFIRM_ADD_SUGGESTED_NFT_ROUTE,
|
||||
CONNECT_HARDWARE_ROUTE,
|
||||
SEND_ROUTE,
|
||||
CONNECTIONS,
|
||||
TOKEN_DETAILS,
|
||||
CONFIRM_TRANSACTION_ROUTE,
|
||||
CONFIRM_SEND_ETHER_PATH,
|
||||
|
@ -12,6 +12,7 @@ import SendTransactionScreen from '../send';
|
||||
import Swaps from '../swaps';
|
||||
import ConfirmTransaction from '../confirm-transaction';
|
||||
import Home from '../home';
|
||||
import { Connections } from '../../components/multichain/pages';
|
||||
import Settings from '../settings';
|
||||
import Authenticated from '../../helpers/higher-order-components/authenticated';
|
||||
import Initialized from '../../helpers/higher-order-components/initialized';
|
||||
@ -78,6 +79,7 @@ import {
|
||||
ONBOARDING_ROUTE,
|
||||
ONBOARDING_UNLOCK_ROUTE,
|
||||
TOKEN_DETAILS,
|
||||
CONNECTIONS,
|
||||
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
||||
INSTITUTIONAL_FEATURES_DONE_ROUTE,
|
||||
CUSTODY_ACCOUNT_DONE_ROUTE,
|
||||
@ -352,6 +354,9 @@ export default class Routes extends Component {
|
||||
/>
|
||||
///: END:ONLY_INCLUDE_IN
|
||||
}
|
||||
{process.env.MULTICHAIN && (
|
||||
<Authenticated path={CONNECTIONS} component={Connections} />
|
||||
)}
|
||||
<Authenticated path={DEFAULT_ROUTE} component={Home} />
|
||||
</Switch>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user