add snackbarProvider to App.tsx
This commit is contained in:
@@ -3,28 +3,33 @@ import Router from './routes';
|
|||||||
// theme
|
// theme
|
||||||
import ThemeProvider from './theme';
|
import ThemeProvider from './theme';
|
||||||
// components
|
// components
|
||||||
import Settings from './components/settings';
|
|
||||||
import RtlLayout from './components/RtlLayout';
|
import RtlLayout from './components/RtlLayout';
|
||||||
import ScrollToTop from './components/ScrollToTop';
|
import ScrollToTop from './components/ScrollToTop';
|
||||||
import { ProgressBarStyle } from './components/ProgressBar';
|
import { ProgressBarStyle } from './components/ProgressBar';
|
||||||
import ThemeColorPresets from './components/ThemeColorPresets';
|
import ThemeColorPresets from './components/ThemeColorPresets';
|
||||||
import MotionLazyContainer from './components/animate/MotionLazyContainer';
|
import MotionLazyContainer from './components/animate/MotionLazyContainer';
|
||||||
|
import { SnackbarProvider } from 'notistack';
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider>
|
<ThemeProvider>
|
||||||
<ThemeColorPresets>
|
<SnackbarProvider
|
||||||
<RtlLayout>
|
autoHideDuration={2000}
|
||||||
<MotionLazyContainer>
|
anchorOrigin={{ vertical: 'top', horizontal: 'right' }}
|
||||||
<ProgressBarStyle />
|
>
|
||||||
{/* <Settings /> */}
|
<ThemeColorPresets>
|
||||||
<ScrollToTop />
|
<RtlLayout>
|
||||||
<Router />
|
<MotionLazyContainer>
|
||||||
</MotionLazyContainer>
|
<ProgressBarStyle />
|
||||||
</RtlLayout>
|
{/* <Settings /> */}
|
||||||
</ThemeColorPresets>
|
<ScrollToTop />
|
||||||
|
<Router />
|
||||||
|
</MotionLazyContainer>
|
||||||
|
</RtlLayout>
|
||||||
|
</ThemeColorPresets>
|
||||||
|
</SnackbarProvider>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user