Skip to content

Commit

Permalink
feat: nextjs-toploader
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed May 1, 2024
1 parent 2846a13 commit 904c742
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"next": "14.2.2",
"next-contentlayer": "^0.3.4",
"next-themes": "^0.3.0",
"nextjs-toploader": "^1.6.12",
"prettier": "3.2.5",
"react": "^18",
"react-dom": "^18",
Expand Down
2 changes: 2 additions & 0 deletions docs-site/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Providers } from '@/components/providers';
import { Header } from '@/components/header';
import { ThemeProvider } from '@/components/theme-provider';
import { fontMono, fontSans } from '@/lib/fonts';
import NextTopLoader from 'nextjs-toploader';

const inter = Inter({ subsets: ['latin'] });

Expand All @@ -27,6 +28,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<NextTopLoader />
<body className={cn('bg-background min-h-screen font-sans antialiased', fontSans.className)}>
<ThemeProvider defaultTheme="dark" attribute="class" enableSystem disableTransitionOnChange>
{/* <div className="container"> */}
Expand Down
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 904c742

Please sign in to comment.