-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.tsx
52 lines (47 loc) · 1.25 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { Button, createTheme, MantineProvider } from '@mantine/core'
import { Notifications } from '@mantine/notifications'
import '../../public/favicon.svg'
import AuthenticationProvider from '../providers/AuthenticationContext/AuthenticationProvider'
import AppRoutes from './Routes'
import '@mantine/core/styles.layer.css'
import '@mantine/dates/styles.layer.css'
import '@mantine/dropzone/styles.css'
import '@mantine/notifications/styles.css'
import '@mantine/tiptap/styles.css'
import 'mantine-datatable/styles.layer.css'
import * as buttonClasses from './styles/Buttons.module.css'
const theme = createTheme({
respectReducedMotion: false,
colors: {
primary: [
'#f2f0ff',
'#e0dff2',
'#bfbdde',
'#9b98ca',
'#7d79ba',
'#6a65b0',
'#605bac',
'#504c97',
'#464388',
'#3b3979',
],
},
primaryColor: 'primary',
primaryShade: 7,
components: {
Button: Button.extend({
classNames: buttonClasses,
}),
},
})
const App = () => {
return (
<MantineProvider defaultColorScheme='auto' theme={theme}>
<AuthenticationProvider>
<AppRoutes />
<Notifications limit={5} position='top-right' />
</AuthenticationProvider>
</MantineProvider>
)
}
export default App