layout.tsx conflicts
Unanswered
Blanc de Hotot posted this in #help-forum
Blanc de HototOP
Root Layout
Other Layout
import type { Metadata } from "next";
import { Poppins } from "next/font/google";
import "./globals.css";
import { cn } from "@/lib/utils";
const poppins = Poppins({
subsets: ["latin"],
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={cn(
poppins.className,
"bg-dark-gray min-h-screen h-full"
)}
>{children}</body>
</html>
);
}Other Layout
//Components
import { Header } from "@/components/header";
export default function Layout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className="bg-default-gray min-h-screen h-full"
>
<Header />
{children}
</body>
</html>
);
}3 Replies
Blanc de HototOP
the other layout is in a
(main) folder groupis this an issue