Compare commits

...

3 Commits

Author SHA1 Message Date
Vignesh Mohankumar
515ce9253d fix: add more padding-bottom on mobile landing page (#5696) 2022-12-15 11:06:17 -05:00
Vignesh Mohankumar
23ed384802 fix: Revert "fix: allow landing page scroll" (#5697)
Revert "fix: allow landing page scroll (#5692)"

This reverts commit 642c489240.
2022-12-15 11:05:53 -05:00
Mike Grabowski
9ae31aa26e build: update name for revert github action (#5693)
chore: update name for revert github action
2022-12-15 07:50:46 -08:00
2 changed files with 15 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
name: Release
name: Revert
on:
# manual trigger
workflow_dispatch:

View File

@@ -3,6 +3,7 @@ import { BrowserEvent, ElementName, EventName, PageName } from '@uniswap/analyti
import { BaseButton } from 'components/Button'
import { LandingPageVariant, useLandingPageFlag } from 'featureFlags/flags/landingPage'
import Swap from 'pages/Swap'
import { useEffect } from 'react'
import { useLocation } from 'react-router-dom'
import { Link as NativeLink } from 'react-router-dom'
import { useIsDarkMode } from 'state/user/hooks'
@@ -56,7 +57,7 @@ const ContentContainer = styled.div<{ isDarkMode: boolean }>`
position: absolute;
bottom: 0;
z-index: ${Z_INDEX.dropdown};
padding: 32px 0;
padding: 32px 0 64px;
transition: ${({ theme }) => `${theme.transition.duration.medium} ${theme.transition.timing.ease} opacity`};
* {
@@ -171,6 +172,18 @@ export default function Landing() {
const landingPageFlag = useLandingPageFlag()
useEffect(() => {
if (landingPageFlag) {
document.body.style.overflow = 'hidden'
return () => {
document.body.style.overflow = 'auto'
}
}
return () => {
// need to have a return so the hook doesn't throw.
}
}, [landingPageFlag])
if (landingPageFlag === LandingPageVariant.Control || !isOpen) return null
return (