Skip to content

Commit

Permalink
Merge pull request #54 from AirWalk-Digital/beta-loading
Browse files Browse the repository at this point in the history
feat(loading spinner): adding page loader for navigation
  • Loading branch information
PAYNEA03 committed Jul 12, 2024
2 parents b7003e2 + b5f9e60 commit 305163b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"next": "^14.2.4",
"next-intl": "^3.10.0",
"next-sitemap": "^4.2.3",
"nextjs-toploader": "^1.6.12",
"pagedjs": "^0.4.3",
"pino": "^8.19.0",
"pino-pretty": "^11.0.0",
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import CssBaseline from '@mui/material/CssBaseline';
import { ThemeProvider } from '@mui/material/styles';
import { AppRouterCacheProvider } from '@mui/material-nextjs/v14-appRouter';
import NextTopLoader from 'nextjs-toploader';
import * as React from 'react';

import { baseTheme } from '@/styles/baseTheme';
Expand All @@ -20,6 +21,7 @@ export default function RootLayout(props: { children: React.ReactNode }) {
<ThemeProvider theme={baseTheme}>
{/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */}
<CssBaseline />
<NextTopLoader />
{props.children}
</ThemeProvider>
</AppRouterCacheProvider>
Expand Down

0 comments on commit 305163b

Please sign in to comment.