fix: make RootLayoutProps readonly to enhance type safety

This commit is contained in:
ngc2207 2025-01-29 12:28:34 +08:00
parent 75cd5caa04
commit 25aec8223b

View File

@ -22,7 +22,7 @@ interface RootLayoutProps {
children: React.ReactNode;
}
export default function RootLayout({ children }: RootLayoutProps) {
export default function RootLayout({ children }: Readonly<RootLayoutProps>) {
return (
<html lang="en" suppressHydrationWarning>
<body