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({ ...@@ -116,9 +116,9 @@ export default function PendingView({
<ThemedText.MediumHeader> <ThemedText.MediumHeader>
<Trans>Waiting to connect</Trans> <Trans>Waiting to connect</Trans>
</ThemedText.MediumHeader> </ThemedText.MediumHeader>
<ThemedText.SubHeader style={{ paddingTop: '8px' }}> <ThemedText.BodyPrimary style={{ paddingTop: '8px' }}>
<Trans>Confirm this connection in your wallet</Trans> <Trans>Confirm this connection in your wallet</Trans>
</ThemedText.SubHeader> </ThemedText.BodyPrimary>
</WaitingToConnectSection> </WaitingToConnectSection>
</> </>
)} )}
......
...@@ -307,15 +307,15 @@ export default function WalletModal({ ...@@ -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 ? ( return redesignFlagEnabled ? (
<AutoRow style={{ flexWrap: 'nowrap', padding: '4px 16px' }}> <AutoRow style={{ flexWrap: 'nowrap', padding: '4px 16px' }}>
<ThemedText.BodySecondary fontSize={12}> <ThemedText.BodySecondary fontSize={16} lineHeight={'24px'}>
<Trans> <Trans>
By connecting a wallet, you agree to Uniswap Labs’{' '} By connecting a wallet, you agree to Uniswap Labs’{' '}
<ExternalLink href="https://uniswap.org/terms-of-service/">Terms of Service</ExternalLink> and acknowledge <ExternalLink href="https://uniswap.org/terms-of-service/">Terms of Service</ExternalLink> and consent to
that you have read and understand the Uniswap{' '} its <ExternalLink href="https://uniswap.org/privacy-policy">Privacy Policy</ExternalLink>.
<ExternalLink href="https://uniswap.org/disclaimer/">Protocol Disclaimer</ExternalLink>.
</Trans> </Trans>
</ThemedText.BodySecondary> </ThemedText.BodySecondary>
</AutoRow> </AutoRow>
...@@ -357,7 +357,7 @@ export default function WalletModal({ ...@@ -357,7 +357,7 @@ export default function WalletModal({
/> />
)} )}
{walletView !== WALLET_VIEWS.PENDING && <OptionGrid data-testid="option-grid">{getOptions()}</OptionGrid>} {walletView !== WALLET_VIEWS.PENDING && <OptionGrid data-testid="option-grid">{getOptions()}</OptionGrid>}
{!pendingError && getTermsOfService(redesignFlagEnabled)} {!pendingError && getTermsOfService(redesignFlagEnabled, walletView)}
</AutoColumn> </AutoColumn>
</ContentWrapper> </ContentWrapper>
</UpperSection> </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