Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Dec 13, 2024
1 parent 12d844a commit 49f4964
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
10 changes: 8 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import "@/app/globals.css";
import { useEffect } from "react";
import { Suspense } from "react";
import AppHeader from "@/components/Header";
import { LoadingState } from "@/components/loading";

export default function RootLayout({
children,
Expand All @@ -23,8 +25,12 @@ export default function RootLayout({
<title>YuYu1015</title>
<meta name="description" content="whes1015" />
<body className="flex min-h-svh flex-col">
<AppHeader />
<main className="flex-1 pb-8">{children}</main>
<Suspense fallback={<LoadingState />}>
<AppHeader />
</Suspense>
<main className="flex-1 pb-8">
<Suspense fallback={<LoadingState />}>{children}</Suspense>
</main>
</body>
</html>
);
Expand Down
14 changes: 0 additions & 14 deletions src/app/not-found.tsx

This file was deleted.

0 comments on commit 49f4964

Please sign in to comment.