mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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';
|
'/interactive-replacement-token-page';
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
const SEND_ROUTE = '/send';
|
const SEND_ROUTE = '/send';
|
||||||
|
const CONNECTIONS = '/connections';
|
||||||
const TOKEN_DETAILS = '/token-details';
|
const TOKEN_DETAILS = '/token-details';
|
||||||
const CONNECT_ROUTE = '/connect';
|
const CONNECT_ROUTE = '/connect';
|
||||||
const CONNECT_CONFIRM_PERMISSIONS_ROUTE = '/confirm-permissions';
|
const CONNECT_CONFIRM_PERMISSIONS_ROUTE = '/confirm-permissions';
|
||||||
@ -145,6 +146,7 @@ const PATH_NAME_MAP = {
|
|||||||
[INTERACTIVE_REPLACEMENT_TOKEN_PAGE]: 'Interactive replacement token page',
|
[INTERACTIVE_REPLACEMENT_TOKEN_PAGE]: 'Interactive replacement token page',
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
[SEND_ROUTE]: 'Send Page',
|
[SEND_ROUTE]: 'Send Page',
|
||||||
|
[CONNECTIONS]: 'Connections',
|
||||||
[`${TOKEN_DETAILS}/:address`]: 'Token Details Page',
|
[`${TOKEN_DETAILS}/:address`]: 'Token Details Page',
|
||||||
[`${CONNECT_ROUTE}/:id`]: 'Connect To Site Confirmation Page',
|
[`${CONNECT_ROUTE}/:id`]: 'Connect To Site Confirmation Page',
|
||||||
[`${CONNECT_ROUTE}/:id${CONNECT_CONFIRM_PERMISSIONS_ROUTE}`]:
|
[`${CONNECT_ROUTE}/:id${CONNECT_CONFIRM_PERMISSIONS_ROUTE}`]:
|
||||||
@ -202,6 +204,7 @@ export {
|
|||||||
CONFIRM_ADD_SUGGESTED_NFT_ROUTE,
|
CONFIRM_ADD_SUGGESTED_NFT_ROUTE,
|
||||||
CONNECT_HARDWARE_ROUTE,
|
CONNECT_HARDWARE_ROUTE,
|
||||||
SEND_ROUTE,
|
SEND_ROUTE,
|
||||||
|
CONNECTIONS,
|
||||||
TOKEN_DETAILS,
|
TOKEN_DETAILS,
|
||||||
CONFIRM_TRANSACTION_ROUTE,
|
CONFIRM_TRANSACTION_ROUTE,
|
||||||
CONFIRM_SEND_ETHER_PATH,
|
CONFIRM_SEND_ETHER_PATH,
|
||||||
|
@ -12,6 +12,7 @@ import SendTransactionScreen from '../send';
|
|||||||
import Swaps from '../swaps';
|
import Swaps from '../swaps';
|
||||||
import ConfirmTransaction from '../confirm-transaction';
|
import ConfirmTransaction from '../confirm-transaction';
|
||||||
import Home from '../home';
|
import Home from '../home';
|
||||||
|
import { Connections } from '../../components/multichain/pages';
|
||||||
import Settings from '../settings';
|
import Settings from '../settings';
|
||||||
import Authenticated from '../../helpers/higher-order-components/authenticated';
|
import Authenticated from '../../helpers/higher-order-components/authenticated';
|
||||||
import Initialized from '../../helpers/higher-order-components/initialized';
|
import Initialized from '../../helpers/higher-order-components/initialized';
|
||||||
@ -78,6 +79,7 @@ import {
|
|||||||
ONBOARDING_ROUTE,
|
ONBOARDING_ROUTE,
|
||||||
ONBOARDING_UNLOCK_ROUTE,
|
ONBOARDING_UNLOCK_ROUTE,
|
||||||
TOKEN_DETAILS,
|
TOKEN_DETAILS,
|
||||||
|
CONNECTIONS,
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
||||||
INSTITUTIONAL_FEATURES_DONE_ROUTE,
|
INSTITUTIONAL_FEATURES_DONE_ROUTE,
|
||||||
CUSTODY_ACCOUNT_DONE_ROUTE,
|
CUSTODY_ACCOUNT_DONE_ROUTE,
|
||||||
@ -352,6 +354,9 @@ export default class Routes extends Component {
|
|||||||
/>
|
/>
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
}
|
}
|
||||||
|
{process.env.MULTICHAIN && (
|
||||||
|
<Authenticated path={CONNECTIONS} component={Connections} />
|
||||||
|
)}
|
||||||
<Authenticated path={DEFAULT_ROUTE} component={Home} />
|
<Authenticated path={DEFAULT_ROUTE} component={Home} />
|
||||||
</Switch>
|
</Switch>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user