source: src/app/layout.tsx@ 057453c

main
Last change on this file since 057453c was 5d6f37a, checked in by Naum Shapkarovski <naumshapkarovski@…>, 7 weeks ago

add customer

  • Property mode set to 100644
File size: 2.5 KB
Line 
1// scrollbar
2import 'simplebar-react/dist/simplebar.min.css';
3
4// image
5import 'react-lazy-load-image-component/src/effects/blur.css';
6
7// editor
8import 'react-quill/dist/quill.snow.css';
9
10// ----------------------------------------------------------------------
11
12// theme
13import ThemeProvider from 'src/theme';
14import { primaryFont } from 'src/theme/typography';
15// components
16import ProgressBar from 'src/components/progress-bar';
17import { MotionLazy } from 'src/components/animate/motion-lazy';
18import { SettingsProvider, SettingsDrawer } from 'src/components/settings';
19// auth
20import { AuthProvider, AuthConsumer } from 'src/auth/context/firebase';
21import { LocalizationProvider } from 'src/locales';
22
23// ----------------------------------------------------------------------
24
25type Props = {
26 children: React.ReactNode;
27};
28
29export const metadata = {
30 title: 'MVP Masters - Admin',
31 description: '',
32 themeColor: '#000000',
33 manifest: '/manifest.json',
34 viewport: {
35 width: 'device-width',
36 initialScale: 1,
37 maximumScale: 1,
38 },
39 icons: [
40 {
41 rel: 'icon',
42 url: '/favicon/favicon.ico',
43 },
44 {
45 rel: 'icon',
46 type: 'image/png',
47 sizes: '16x16',
48 url: '/favicon/favicon-16x16.png',
49 },
50 {
51 rel: 'icon',
52 type: 'image/png',
53 sizes: '32x32',
54 url: '/favicon/favicon-32x32.png',
55 },
56 {
57 rel: 'apple-touch-icon',
58 sizes: '180x180',
59 url: '/favicon/apple-touch-icon.png',
60 },
61 ],
62};
63
64export default function RootLayout({ children }: Props) {
65 return (
66 <html lang="en" className={primaryFont.className}>
67 <body>
68 <AuthProvider>
69 <LocalizationProvider>
70 <SettingsProvider
71 defaultSettings={{
72 themeMode: 'dark', // 'light' | 'dark'
73 themeDirection: 'ltr', // 'rtl' | 'ltr'
74 themeContrast: 'default', // 'default' | 'bold'
75 themeLayout: 'vertical', // 'vertical' | 'horizontal' | 'mini'
76 themeColorPresets: 'red', // 'default' | 'cyan' | 'purple' | 'blue' | 'orange' | 'red'
77 themeStretch: false,
78 }}
79 >
80 <ThemeProvider>
81 <MotionLazy>
82 <SettingsDrawer />
83 <ProgressBar />
84 <AuthConsumer>{children}</AuthConsumer>
85 </MotionLazy>
86 </ThemeProvider>
87 </SettingsProvider>
88 </LocalizationProvider>
89 </AuthProvider>
90 </body>
91 </html>
92 );
93}
Note: See TracBrowser for help on using the repository browser.