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