feat: replaced protocol disclaimer with privacy policy link (#5170)

copy updates
This commit is contained in:
cartcrom 2022-11-11 11:28:27 -05:00 committed by GitHub
parent f5df2fed09
commit 0835744006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 20 deletions

@ -137,12 +137,12 @@ export function PrivacyPolicy() {
</ExternalLink>
</StyledExternalCard>
<StyledExternalCard>
<ExternalLink href={'https://uniswap.org/disclaimer/'}>
<ExternalLink href={'https://uniswap.org/privacy-policy/'}>
<RowBetween>
<AutoRow gap="4px">
<Info size={20} />
<ThemedText.DeprecatedMain fontSize={14} color={'deprecated_primaryText1'}>
<Trans>Protocol Disclaimer</Trans>
<Trans>Privacy Policy</Trans>
</ThemedText.DeprecatedMain>
</AutoRow>
<StyledLinkOut size={20} />

@ -315,32 +315,24 @@ export default function WalletModal({
function getTermsOfService(nftFlagEnabled: boolean, walletView: string) {
if (nftFlagEnabled && walletView === WALLET_VIEWS.PENDING) return null
const content = (
<Trans>
By connecting a wallet, you agree to Uniswap Labs{' '}
<ExternalLink href="https://uniswap.org/terms-of-service/">Terms of Service</ExternalLink> and consent to its{' '}
<ExternalLink href="https://uniswap.org/privacy-policy">Privacy Policy</ExternalLink>.
</Trans>
)
return nftFlagEnabled ? (
<AutoRow style={{ flexWrap: 'nowrap', padding: '4px 16px' }}>
<ThemedText.BodySecondary fontSize={16} lineHeight={'24px'}>
<Trans>
By connecting a wallet, you agree to Uniswap Labs{' '}
<ExternalLink href="https://uniswap.org/terms-of-service/">Terms of Service</ExternalLink> and consent to
its <ExternalLink href="https://uniswap.org/privacy-policy">Privacy Policy</ExternalLink>.
</Trans>
{content}
</ThemedText.BodySecondary>
</AutoRow>
) : (
<LightCard>
<AutoRow style={{ flexWrap: 'nowrap' }}>
<ThemedText.DeprecatedBody fontSize={12}>
<Trans>
By connecting a wallet, you agree to Uniswap Labs{' '}
<ExternalLink style={{ textDecoration: 'underline' }} href="https://uniswap.org/terms-of-service/">
Terms of Service
</ExternalLink>{' '}
and acknowledge that you have read and understand the Uniswap{' '}
<ExternalLink style={{ textDecoration: 'underline' }} href="https://uniswap.org/disclaimer/">
Protocol Disclaimer
</ExternalLink>
.
</Trans>
</ThemedText.DeprecatedBody>
<ThemedText.DeprecatedBody fontSize={12}>{content}</ThemedText.DeprecatedBody>
</AutoRow>
</LightCard>
)