Commit 642c4892 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

fix: allow landing page scroll (#5692)

parent 778ea8ee
...@@ -3,7 +3,6 @@ import { BrowserEvent, ElementName, EventName, PageName } from '@uniswap/analyti ...@@ -3,7 +3,6 @@ import { BrowserEvent, ElementName, EventName, PageName } from '@uniswap/analyti
import { BaseButton } from 'components/Button' import { BaseButton } from 'components/Button'
import { LandingPageVariant, useLandingPageFlag } from 'featureFlags/flags/landingPage' import { LandingPageVariant, useLandingPageFlag } from 'featureFlags/flags/landingPage'
import Swap from 'pages/Swap' import Swap from 'pages/Swap'
import { useEffect } from 'react'
import { useLocation } from 'react-router-dom' import { useLocation } from 'react-router-dom'
import { Link as NativeLink } from 'react-router-dom' import { Link as NativeLink } from 'react-router-dom'
import { useIsDarkMode } from 'state/user/hooks' import { useIsDarkMode } from 'state/user/hooks'
...@@ -172,18 +171,6 @@ export default function Landing() { ...@@ -172,18 +171,6 @@ export default function Landing() {
const landingPageFlag = useLandingPageFlag() 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 if (landingPageFlag === LandingPageVariant.Control || !isOpen) return null
return ( return (
......
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