diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 10:40:36 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 10:40:36 +0700 |
| commit | 410b363883cc8b441bc2a858825ade07d72a19ca (patch) | |
| tree | c39d9fbc13381e5ac5b67f37b5d8aa6a194c745c /src/pages/_app.js | |
| parent | 83354e3e9af77447a399b1f47fa22c7fccbbbe72 (diff) | |
Add progress bar and performance optimization
Diffstat (limited to 'src/pages/_app.js')
| -rw-r--r-- | src/pages/_app.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/pages/_app.js b/src/pages/_app.js index 1e1cec92..7062d23c 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -1,7 +1,15 @@ -import '../styles/globals.css' +import '../styles/globals.css'; +import NextProgress from 'next-progress'; function MyApp({ Component, pageProps }) { - return <Component {...pageProps} /> + return ( + <> + <NextProgress color="#D7A30A" options={{ + showSpinner: false, + }} /> + <Component {...pageProps} /> + </> + ) } export default MyApp |
