Skip to content

Commit

Permalink
There should be no account risks or blocked accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
KillariDev committed Dec 29, 2023
1 parent 0b199ec commit 3022578
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 160 deletions.
56 changes: 0 additions & 56 deletions src/components/ConnectedAccountBlocked/index.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/TopLevelModals/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { useWeb3React } from '@web3-react/core'
import { OffchainActivityModal } from 'components/AccountDrawer/MiniPortfolio/Activity/OffchainActivityModal'
import AirdropModal from 'components/AirdropModal'
import AddressClaimModal from 'components/claim/AddressClaimModal'
import ConnectedAccountBlocked from 'components/ConnectedAccountBlocked'
import FiatOnrampModal from 'components/FiatOnrampModal'
import { UkDisclaimerModal } from 'components/NavBar/UkDisclaimerModal'
import DevFlagsBox from 'dev/DevFlagsBox'
import useAccountRiskCheck from 'hooks/useAccountRiskCheck'
import Bag from 'nft/components/bag/Bag'
import TransactionCompleteModal from 'nft/components/collection/TransactionCompleteModal'
import { useModalIsOpen, useToggleModal } from 'state/application/hooks'
Expand All @@ -16,16 +13,11 @@ import { isDevelopmentEnv, isStagingEnv } from 'utils/env'
export default function TopLevelModals() {
const addressClaimOpen = useModalIsOpen(ApplicationModal.ADDRESS_CLAIM)
const addressClaimToggle = useToggleModal(ApplicationModal.ADDRESS_CLAIM)
const blockedAccountModalOpen = useModalIsOpen(ApplicationModal.BLOCKED_ACCOUNT)
const { account } = useWeb3React()
useAccountRiskCheck(account)
const accountBlocked = Boolean(blockedAccountModalOpen && account)
const shouldShowDevFlags = isDevelopmentEnv() || isStagingEnv()

return (
<>
<AddressClaimModal isOpen={addressClaimOpen} onDismiss={addressClaimToggle} />
<ConnectedAccountBlocked account={account} isOpen={accountBlocked} />
<Bag />
<OffchainActivityModal />
<TransactionCompleteModal />
Expand Down
56 changes: 0 additions & 56 deletions src/hooks/useAccountRiskCheck.test.ts

This file was deleted.

40 changes: 0 additions & 40 deletions src/hooks/useAccountRiskCheck.ts

This file was deleted.

0 comments on commit 3022578

Please sign in to comment.