1
0
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:
Niranjana Binoy 2022-04-07 13:11:42 -04:00 committed by GitHub
parent 553e11d555
commit 89ce0cee85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -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'

View File

@ -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),