Skip to content

Commit

Permalink
fix: remove showing nft autodetection modal
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Jul 22, 2024
1 parent c2f65c4 commit d0ee136
Showing 1 changed file with 0 additions and 14 deletions.
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

0 comments on commit d0ee136

Please sign in to comment.