💄 Loading progress bar

This commit is contained in:
2025-01-04 18:44:15 +08:00
parent 423b3dac05
commit af2e87dd84
3 changed files with 8 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import type { AppProps } from 'next/app'
import { Box, createTheme, CssBaseline, ThemeProvider } from '@mui/material'
import { Roboto } from 'next/font/google'
import { CapAppBar } from '@/components/CapAppBar'
import { PagesProgressBar as ProgressBar } from 'next-nprogress-bar'
import { useUserStore } from '@/services/user'
import { useEffect } from 'react'
import Head from 'next/head'
@@ -57,6 +58,12 @@ export default function App({ Component, pageProps }: AppProps) {
<ThemeProvider theme={siteTheme}>
<CssBaseline />
<ProgressBar
height="4px"
color={siteTheme.palette.primary.main}
options={{ showSpinner: false }}
shallowRouting
/>
<CapAppBar />
<Box sx={{ minHeight: 'calc(100vh - 64px)' }}>