fix: correct component syntax and formatting in layout and header files

This commit is contained in:
tuna2134
2026-05-26 08:42:04 +09:00
parent dcf4255535
commit 4b91d2ea8a
4 changed files with 11 additions and 11 deletions

View File

@@ -11,6 +11,6 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
{children} {children}
</> </>
); );
} };
export default Layout; export default Layout;

View File

@@ -2,9 +2,7 @@ import Image from "next/image";
import { NextPage } from "next"; import { NextPage } from "next";
const Home: NextPage = () => { const Home: NextPage = () => {
return ( return <p>hello</p>;
<p>hello</p> };
);
}
export default Home; export default Home;

View File

@@ -27,7 +27,9 @@ export default function RootLayout({
lang="ja" lang="ja"
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`} className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
> >
<body className="min-h-full flex flex-col bg-black text-white">{children}</body> <body className="min-h-full flex flex-col bg-black text-white">
{children}
</body>
</html> </html>
); );
} }

View File

@@ -4,7 +4,7 @@ const Header: React.FC = () => {
<small className="text-sm">tuna2134の休憩</small> <small className="text-sm">tuna2134の休憩</small>
<h1 className="text-4xl font-bold">tuna2134</h1> <h1 className="text-4xl font-bold">tuna2134</h1>
</header> </header>
) );
} };
export default Header; export default Header;