mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Updating info ActionableMessage type to default (#14385)
This commit is contained in:
parent
553e11d555
commit
89ce0cee85
@ -419,7 +419,7 @@ class ImportToken extends Component {
|
|||||||
<div className="import-token__custom-token-form">
|
<div className="import-token__custom-token-form">
|
||||||
{TOKEN_DETECTION_V2 ? (
|
{TOKEN_DETECTION_V2 ? (
|
||||||
<ActionableMessage
|
<ActionableMessage
|
||||||
type={isTokenDetectionSupported ? 'warning' : 'info'}
|
type={isTokenDetectionSupported ? 'warning' : 'default'}
|
||||||
message={t(
|
message={t(
|
||||||
isTokenDetectionSupported
|
isTokenDetectionSupported
|
||||||
? 'customTokenWarningInTokenDetectionNetwork'
|
? 'customTokenWarningInTokenDetectionNetwork'
|
||||||
|
@ -10,6 +10,7 @@ import {
|
|||||||
getRpcPrefsForCurrentProvider,
|
getRpcPrefsForCurrentProvider,
|
||||||
getIsTokenDetectionSupported,
|
getIsTokenDetectionSupported,
|
||||||
getTokenDetectionSupportNetworkByChainId,
|
getTokenDetectionSupportNetworkByChainId,
|
||||||
|
getIsMainnet,
|
||||||
} from '../../selectors/selectors';
|
} from '../../selectors/selectors';
|
||||||
import ImportToken from './import-token.component';
|
import ImportToken from './import-token.component';
|
||||||
|
|
||||||
@ -25,8 +26,14 @@ const mapStateToProps = (state) => {
|
|||||||
selectedAddress,
|
selectedAddress,
|
||||||
},
|
},
|
||||||
} = state;
|
} = state;
|
||||||
|
|
||||||
|
const tokenDetectionV2Supported =
|
||||||
|
process.env.TOKEN_DETECTION_V2 && getIsTokenDetectionSupported(state);
|
||||||
const showSearchTab =
|
const showSearchTab =
|
||||||
getIsTokenDetectionSupported(state) || process.env.IN_TEST;
|
getIsMainnet(state) ||
|
||||||
|
tokenDetectionV2Supported ||
|
||||||
|
Boolean(process.env.IN_TEST);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
identities,
|
identities,
|
||||||
mostRecentOverviewPage: getMostRecentOverviewPage(state),
|
mostRecentOverviewPage: getMostRecentOverviewPage(state),
|
||||||
|
Loading…
Reference in New Issue
Block a user