Skip to content

Commit 8b045f4

Browse files
committed
Replace fallback with Loader component
1 parent a6d2692 commit 8b045f4

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

src/layouts/RootLayout.jsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,21 @@ import 'react-toastify/dist/ReactToastify.css';
55
import SEO from '../components/SEO';
66
import TopFooter from '../components/Footer';
77
import MainHeader from '../components/Header';
8+
import Loader from '../components/Loader';
89

910

1011
function RootLayout() {
1112
return (
1213
<>
1314
<MainHeader />
14-
<main className="mt-[84px]">
15+
<main className="mt-[84px] min-h-screen">
1516
<SEO
1617
title="CoreX Nutrition"
1718
description="CoreX Nutrition official site — explore accessibility, policies, and open-source projects."
1819
keywords="CoreX Nutrition, Open Source, Accessibility"
1920
/>
2021
{/* Sets page-specific title/meta */}
21-
<Suspense
22-
fallback={
23-
<div
24-
role="status"
25-
aria-live="polite"
26-
className="text-center py-8 text-gray-500"
27-
>
28-
Loading content...
29-
</div>
30-
}
31-
>
22+
<Suspense fallback={<Loader />}>
3223
<Outlet />
3324
</Suspense>
3425
</main>

0 commit comments

Comments
 (0)