Skip to content

Commit

Permalink
Merge pull request #18 from DarkFlorist/blocked-accounts
Browse files Browse the repository at this point in the history
There should be no account risks or blocked accounts
  • Loading branch information
KillariDev authored Jan 2, 2024
2 parents 79624c7 + 3737d0f commit c74f85e
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 161 deletions.
56 changes: 0 additions & 56 deletions src/components/ConnectedAccountBlocked/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/TokenSafety/TokenSafetyIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const WarningIcon = styled(AlertTriangle)`
color: ${({ theme }) => theme.neutral3};
`

export const BlockedIcon = styled(Slash)`
const BlockedIcon = styled(Slash)`
${WarningIconStyle}
color: ${({ theme }) => theme.neutral2};
`
Expand Down
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 c74f85e

Please sign in to comment.