mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
97073e1907
* move opensea api and nft settings to security tab * DS techdebt; experimental tab * rerouting the NFT tab enable autodetect to setting * reverting vscode settings and preferences.js * Rerouting NFT tab autodetect setting banner link * resolving settingsRef collision
25 lines
733 B
JavaScript
25 lines
733 B
JavaScript
import React from 'react';
|
|
import { useHistory } from 'react-router-dom';
|
|
import { BannerAlert } from '../../component-library';
|
|
import { useI18nContext } from '../../../hooks/useI18nContext';
|
|
import { SECURITY_ROUTE } from '../../../helpers/constants/routes';
|
|
|
|
export default function NftsDetectionNotice() {
|
|
const t = useI18nContext();
|
|
const history = useHistory();
|
|
|
|
return (
|
|
<BannerAlert
|
|
className="nfts-detection-notice"
|
|
title={t('newNFTsDetected')}
|
|
actionButtonLabel={t('selectNFTPrivacyPreference')}
|
|
actionButtonOnClick={(e) => {
|
|
e.preventDefault();
|
|
history.push(`${SECURITY_ROUTE}#autodetect-nfts`);
|
|
}}
|
|
>
|
|
{t('newNFTDetectedMessage')}
|
|
</BannerAlert>
|
|
);
|
|
}
|