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">
|
||||
{TOKEN_DETECTION_V2 ? (
|
||||
<ActionableMessage
|
||||
type={isTokenDetectionSupported ? 'warning' : 'info'}
|
||||
type={isTokenDetectionSupported ? 'warning' : 'default'}
|
||||
message={t(
|
||||
isTokenDetectionSupported
|
||||
? 'customTokenWarningInTokenDetectionNetwork'
|
||||
|
@ -10,6 +10,7 @@ import {
|
||||
getRpcPrefsForCurrentProvider,
|
||||
getIsTokenDetectionSupported,
|
||||
getTokenDetectionSupportNetworkByChainId,
|
||||
getIsMainnet,
|
||||
} from '../../selectors/selectors';
|
||||
import ImportToken from './import-token.component';
|
||||
|
||||
@ -25,8 +26,14 @@ const mapStateToProps = (state) => {
|
||||
selectedAddress,
|
||||
},
|
||||
} = state;
|
||||
|
||||
const tokenDetectionV2Supported =
|
||||
process.env.TOKEN_DETECTION_V2 && getIsTokenDetectionSupported(state);
|
||||
const showSearchTab =
|
||||
getIsTokenDetectionSupported(state) || process.env.IN_TEST;
|
||||
getIsMainnet(state) ||
|
||||
tokenDetectionV2Supported ||
|
||||
Boolean(process.env.IN_TEST);
|
||||
|
||||
return {
|
||||
identities,
|
||||
mostRecentOverviewPage: getMostRecentOverviewPage(state),
|
||||
|
Loading…
Reference in New Issue
Block a user