add loading indicator

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-16 22:43:23 +02:00
committed by Carl-Gerhard Lindesvärd
parent 1aa95e8649
commit 694f5bf622
3 changed files with 34 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
import { cn } from '@/utils/cn';
import NextTopLoader from 'nextjs-toploader';
import Providers from './providers';
@@ -26,6 +27,12 @@ export default function RootLayout({
<body
className={cn('grainy min-h-screen bg-slate-100 font-sans antialiased')}
>
<NextTopLoader
showSpinner={false}
color="#2463EB"
height={2}
shadow={false}
/>
<Providers>{children}</Providers>
</body>
</html>