forked from djyde/cusdis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_app.tsx
34 lines (30 loc) · 927 Bytes
/
_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
import { Provider } from 'next-auth/client'
import { QueryClient, QueryClientProvider } from 'react-query'
import { MantineProvider } from '@mantine/core'
import { Notifications } from '@mantine/notifications';
import { ModalsProvider } from '@mantine/modals';
import '../style.css'
const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false
}
}
})
export default function App({ Component, pageProps }) {
return (
<Provider session={pageProps.session}>
{/* @ts-ignore */}
<QueryClientProvider client={queryClient}>
<MantineProvider theme={{
primaryColor: 'gray'
}} withGlobalStyles withNormalizeCSS>
<ModalsProvider>
<Notifications position='top-center' />
<Component {...pageProps} />
</ModalsProvider>
</MantineProvider>
</QueryClientProvider>
</Provider>
)
}