Skip to content

Commit

Permalink
refactor: add a proper type for Layout props
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Valeriano committed Sep 22, 2024
1 parent 716f1ce commit f426168
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "~/app/globals.css";

type Props = Readonly<{ children: React.ReactNode }>;

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "Next App",
description: "Not generated by create next app, but based on it",
};

export default function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
export default function RootLayout({ children }: Props) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
Expand Down

0 comments on commit f426168

Please sign in to comment.