Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove showing nft autodetection modal #25993

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions ui/pages/home/home.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import WhatsNewPopup from '../../components/app/whats-new-popup';
import { FirstTimeFlowType } from '../../../shared/constants/onboarding';
import SmartTransactionsOptInModal from '../../components/app/smart-transactions/smart-transactions-opt-in-modal';
import AutoDetectTokenModal from '../../components/app/auto-detect-token/auto-detect-token-modal';
import AutoDetectNftModal from '../../components/app/auto-detect-nft/auto-detect-nft-modal';
///: END:ONLY_INCLUDE_IF
import HomeNotification from '../../components/app/home-notification';
import MultipleNotifications from '../../components/app/multiple-notifications';
Expand Down Expand Up @@ -154,7 +153,6 @@ export default class Home extends PureComponent {
onboardedInThisUISession: PropTypes.bool,
isSmartTransactionsOptInModalAvailable: PropTypes.bool.isRequired,
isShowTokenAutodetectModal: PropTypes.bool.isRequired,
isShowNftAutodetectModal: PropTypes.bool.isRequired,
///: END:ONLY_INCLUDE_IF
newNetworkAddedConfigurationId: PropTypes.string,
isNotification: PropTypes.bool.isRequired,
Expand Down Expand Up @@ -979,8 +977,6 @@ export default class Home extends PureComponent {
isShowTokenAutodetectModal,
setTokenAutodetectModal,
setShowTokenAutodetectModalOnUpgrade,
isShowNftAutodetectModal,
setNftAutodetectModal,
///: END:ONLY_INCLUDE_IF
} = this.props;

Expand Down Expand Up @@ -1012,12 +1008,6 @@ export default class Home extends PureComponent {
isShowTokenAutodetectModal &&
!showSmartTransactionsOptInModal &&
!showWhatsNew;
// TODO show ths after token autodetect modal is merged
const showNftAutoDetectionModal =
canSeeModals &&
isShowNftAutodetectModal &&
!showSmartTransactionsOptInModal &&
!showWhatsNew;

const showTermsOfUse =
completedOnboarding && !onboardedInThisUISession && showTermsOfUsePopup;
Expand Down Expand Up @@ -1052,10 +1042,6 @@ export default class Home extends PureComponent {
}
/>

<AutoDetectNftModal
isOpen={showNftAutoDetectionModal}
onClose={setNftAutodetectModal}
/>
{showWhatsNew ? <WhatsNewPopup onClose={hideWhatsNewPopup} /> : null}
{!showWhatsNew && showRecoveryPhraseReminder ? (
<RecoveryPhraseReminder
Expand Down