How to prevent my app/layout from displaying header and footer on sanity studio

125 Views Asked by At

I am having this issue where my header and footer from the app are appearing on my sanity admin page, and I assume it has to do with the layout.tsx file but I cannot seemt to fix it or find solutions online. Any help would be appreciated.

    export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en">
        <body className={`${inter.className} overflow-x-hidden no-scrollbar`}>
          <Header />
          {children}
          <Footer />
        </body>
    </html>
  )
} 

header appearing in sanity studio

0

There are 0 best solutions below