From 2dab957a059a4378318bd7f1a19f68cbb971e623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 6 Apr 2024 12:28:29 -0500 Subject: [PATCH] fix: scroll padding --- src/app/layout.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index afd695f32..b0d06929d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,11 +5,10 @@ import '@radix-ui/themes/styles.css'; import { config } from 'dotenv'; import { Roboto_Flex } from 'next/font/google'; import { usePathname } from 'next/navigation'; -import { ReactNode, use, useEffect, useState } from 'react'; +import { ReactNode, useEffect, useState } from 'react'; import { Analytics } from '../components/Analytics'; import { Footer } from '../components/Footer'; import Navbar from '../components/Navbar'; -import { gameDefinitions } from '../core/blitzkrieg/gameDefinitions'; import isDev from '../core/blitzkrieg/isDev'; import { isLocalhost } from '../core/blitzkrieg/isLocalhost'; import { useFullScreen } from '../hooks/useFullScreen'; @@ -29,7 +28,6 @@ const robotoFlex = Roboto_Flex({ }); export default function RootLayout({ children }: RootLayoutProps) { - const awaitedGameDefinitions = use(gameDefinitions); const pathname = usePathname(); const isEmbed = pathname.split('/')[1] === 'embeds'; const [showDevBuildAlert, setShowDevBuildAlert] = useState(false); @@ -58,7 +56,6 @@ export default function RootLayout({ children }: RootLayoutProps) { @@ -69,7 +66,10 @@ export default function RootLayout({ children }: RootLayoutProps) { suppressHydrationWarning suppressContentEditableWarning > - + {!isEmbed && }