Commit fc08ede5 authored by lynn's avatar lynn Committed by GitHub

feat: privacy disclaimer change (#4790)

* privacy disclaimer change

* remove change for current site, only apply to phase 0
parent 995a6298
......@@ -116,9 +116,9 @@ export default function PendingView({
<ThemedText.MediumHeader>
<Trans>Waiting to connect</Trans>
</ThemedText.MediumHeader>
<ThemedText.SubHeader style={{ paddingTop: '8px' }}>
<ThemedText.BodyPrimary style={{ paddingTop: '8px' }}>
<Trans>Confirm this connection in your wallet</Trans>
</ThemedText.SubHeader>
</ThemedText.BodyPrimary>
</WaitingToConnectSection>
</>
)}
......
......@@ -307,15 +307,15 @@ export default function WalletModal({
)
}
function getTermsOfService(redesignFlagEnabled: boolean) {
function getTermsOfService(redesignFlagEnabled: boolean, walletView: string) {
if (redesignFlagEnabled && walletView === WALLET_VIEWS.PENDING) return null
return redesignFlagEnabled ? (
<AutoRow style={{ flexWrap: 'nowrap', padding: '4px 16px' }}>
<ThemedText.BodySecondary fontSize={12}>
<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 acknowledge
that you have read and understand the Uniswap{' '}
<ExternalLink href="https://uniswap.org/disclaimer/">Protocol Disclaimer</ExternalLink>.
<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>
</ThemedText.BodySecondary>
</AutoRow>
......@@ -357,7 +357,7 @@ export default function WalletModal({
/>
)}
{walletView !== WALLET_VIEWS.PENDING && <OptionGrid data-testid="option-grid">{getOptions()}</OptionGrid>}
{!pendingError && getTermsOfService(redesignFlagEnabled)}
{!pendingError && getTermsOfService(redesignFlagEnabled, walletView)}
</AutoColumn>
</ContentWrapper>
</UpperSection>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment