Skip to content

Commit

Permalink
Merge pull request #5 from goblockchain/develop
Browse files Browse the repository at this point in the history
chore: remove popup android download
  • Loading branch information
samervalente authored Dec 5, 2023
2 parents 0097ebc + fe16e03 commit a0362ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
18 changes: 4 additions & 14 deletions src/components/Banner/AndroidAnnouncementBanner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-unused-modules */
import { Trans } from '@lingui/macro'
import { InterfaceElementName } from '@uniswap/analytics-events'
import { useAndroidGALaunchFlagEnabled } from 'featureFlags/flags/androidGALaunch'
Expand All @@ -10,17 +11,7 @@ import { openDownloadApp } from 'utils/openDownloadApp'
import { isMobileSafari } from 'utils/userAgent'

import androidAnnouncementBannerQR from '../../../assets/images/androidAnnouncementBannerQR.png'
import darkAndroidThumbnail from '../../../assets/images/AndroidWallet-Thumbnail-Dark.png'
import lightAndroidThumbnail from '../../../assets/images/AndroidWallet-Thumbnail-Light.png'
import {
Container,
DownloadButton,
PopupContainer,
StyledQrCode,
StyledXButton,
TextContainer,
Thumbnail,
} from './styled'
import { Container, DownloadButton, PopupContainer, StyledQrCode, StyledXButton, TextContainer } from './styled'

export default function AndroidAnnouncementBanner() {
const [hideAndroidAnnouncementBanner, toggleHideAndroidAnnouncementBanner] = useHideAndroidAnnouncementBanner()
Expand All @@ -41,12 +32,11 @@ export default function AndroidAnnouncementBanner() {
if (!isAndroidGALaunched || isMobileSafari) return null

return (
<PopupContainer show={shouldDisplay}>
<PopupContainer show={false}>
<Container>
<Thumbnail src={isDarkMode ? darkAndroidThumbnail : lightAndroidThumbnail} alt="Android app thumbnail" />
<TextContainer onClick={!screenSize['xs'] ? onClick : undefined}>
<ThemedText.BodySmall lineHeight="20px">
<Trans>Uniswap on Android</Trans>
<Trans>T-DREX on Android</Trans>
</ThemedText.BodySmall>
<ThemedText.LabelMicro>
<Trans>Available now - download from the Google Play Store today</Trans>
Expand Down
2 changes: 0 additions & 2 deletions src/components/TopLevelModals/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useWeb3React } from '@web3-react/core'
import { OffchainActivityModal } from 'components/AccountDrawer/MiniPortfolio/Activity/OffchainActivityModal'
import UniwalletModal from 'components/AccountDrawer/UniwalletModal'
import AirdropModal from 'components/AirdropModal'
import AndroidAnnouncementBanner from 'components/Banner/AndroidAnnouncementBanner'
import AddressClaimModal from 'components/claim/AddressClaimModal'
import ConnectedAccountBlocked from 'components/ConnectedAccountBlocked'
import FiatOnrampModal from 'components/FiatOnrampModal'
Expand Down Expand Up @@ -30,7 +29,6 @@ export default function TopLevelModals() {
<ConnectedAccountBlocked account={account} isOpen={accountBlocked} />
<Bag />
<UniwalletModal />
<AndroidAnnouncementBanner />
<OffchainActivityModal />
<TransactionCompleteModal />
<AirdropModal />
Expand Down

0 comments on commit a0362ce

Please sign in to comment.