From 76300199474d2ae0c8e9b7e5fb3984c2ada128d1 Mon Sep 17 00:00:00 2001 From: Andy Espagnolo Date: Tue, 3 Oct 2023 16:36:20 -0300 Subject: [PATCH] feat: footer is now wide on all pages (#1311) --- src/components/Layout/Layout.tsx | 7 +------ src/utils/locations.ts | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/Layout/Layout.tsx b/src/components/Layout/Layout.tsx index dffe52331..402cb4ae8 100644 --- a/src/components/Layout/Layout.tsx +++ b/src/components/Layout/Layout.tsx @@ -1,14 +1,12 @@ import React from 'react' import { ChainId } from '@dcl/schemas/dist/dapps/chain-id' -import { useLocation } from '@reach/router' import useAuthContext from 'decentraland-gatsby/dist/context/Auth/useAuthContext' import env from 'decentraland-gatsby/dist/utils/env' import { Footer } from 'decentraland-ui/dist/components/Footer/Footer' import { Navbar, NavbarProps } from 'decentraland-ui/dist/components/Navbar/Navbar' import type { PageProps } from 'gatsby' -import { isProjectPath } from '../../utils/locations' import WalletSelectorModal from '../Modal/WalletSelectorModal' import WrongNetworkModal from '../Modal/WrongNetworkModal' @@ -30,7 +28,6 @@ export type LayoutProps = Omit & { export default function Layout({ children, ...props }: LayoutProps) { const [, state] = useAuthContext() - const location = useLocation() const handleClickMenuOption = function (event: React.MouseEvent, section: string) { if (!event.defaultPrevented) { @@ -44,8 +41,6 @@ export default function Layout({ children, ...props }: LayoutProps) { return null } - const isWiderLayout = isProjectPath(location.pathname) - return ( <> @@ -64,7 +59,7 @@ export default function Layout({ children, ...props }: LayoutProps) { onConnect={(providerType, chainId) => state.connect(providerType, chainId)} onClose={() => state.select(false)} /> -