Commit deee2784 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

chore: remove unused isOpen state in Landing (#5732)

Co-authored-by: default avatareddie <66155195+just-toby@users.noreply.github.com>
parent 6340deb2
...@@ -279,12 +279,10 @@ export default function Landing() { ...@@ -279,12 +279,10 @@ export default function Landing() {
const cardsRef = useRef<HTMLDivElement>(null) const cardsRef = useRef<HTMLDivElement>(null)
const location = useLocation()
const isOpen = location.pathname === '/'
const [showContent, setShowContent] = useState(false) const [showContent, setShowContent] = useState(false)
const selectedWallet = useAppSelector((state) => state.user.selectedWallet) const selectedWallet = useAppSelector((state) => state.user.selectedWallet)
const navigate = useNavigate() const navigate = useNavigate()
const location = useLocation()
const queryParams = parse(location.search, { const queryParams = parse(location.search, {
ignoreQueryPrefix: true, ignoreQueryPrefix: true,
}) })
...@@ -298,8 +296,6 @@ export default function Landing() { ...@@ -298,8 +296,6 @@ export default function Landing() {
} }
}, [navigate, selectedWallet, queryParams.intro]) }, [navigate, selectedWallet, queryParams.intro])
if (!isOpen) return null
return ( return (
<Trace page={PageName.LANDING_PAGE} shouldLogImpression> <Trace page={PageName.LANDING_PAGE} shouldLogImpression>
{showContent && ( {showContent && (
......
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