Skip to content

Commit

Permalink
feat(layout): top-loader is back 😎
Browse files Browse the repository at this point in the history
  • Loading branch information
sozonome committed Aug 18, 2023
1 parent 48ca9a9 commit 6b007b9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"next": "13.4.12",
"next-contentlayer": "^0.3.4",
"next-seo": "^6.1.0",
"nextjs-toploader": "^1.4.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.10.1",
Expand Down
26 changes: 26 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Metadata } from 'next';
import Script from 'next/script';
import NextTopLoader from 'nextjs-toploader';

import Providers from '~/app/providers';
import { baseUrl } from '~/lib/constants/baseUrl';
Expand Down Expand Up @@ -71,6 +72,7 @@ const RootLayout = ({ children }: RootLayoutProps) => {
return (
<html lang="en">
<body suppressHydrationWarning>
<NextTopLoader color="#747978" showSpinner={false} />
<Providers>
<Layout>{children}</Layout>
</Providers>
Expand Down

1 comment on commit 6b007b9

@vercel
Copy link

@vercel vercel bot commented on 6b007b9 Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.