Unverified Commit c0a7b91b authored by Joseph's avatar Joseph Committed by GitHub

cna: use LayoutProps helper in TS layout templates (#95675)

Update create-next-app templates to use `LayoutProps`
parent 4dea35db
......@@ -5,11 +5,7 @@ export const metadata: Metadata = {
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
export default function RootLayout({ children }: LayoutProps<"/">) {
return (
<html lang="en">
<body>{children}</body>
......
......@@ -6,11 +6,7 @@ export const metadata: Metadata = {
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
export default function RootLayout({ children }: LayoutProps<"/">) {
return (
<html lang="en">
<body>{children}</body>
......
......@@ -17,11 +17,7 @@ export const metadata: Metadata = {
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
export default function RootLayout({ children }: LayoutProps<"/">) {
return (
<html
lang="en"
......
......@@ -17,11 +17,7 @@ export const metadata: Metadata = {
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
export default function RootLayout({ children }: LayoutProps<"/">) {
return (
<html lang="en" className={`${geistSans.variable} ${geistMono.variable}`}>
<body>{children}</body>
......
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