-
Notifications
You must be signed in to change notification settings - Fork 8
/
_app.tsx
32 lines (30 loc) · 910 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
import React from 'react';
import { ToastContainer } from 'react-bootstrap';
import type { AppProps } from 'next/app';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { persistor, store } from '../store/store';
import Layout from '../components/Layout';
function MyApp({ Component, pageProps }: AppProps) {
return (
<div>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<Layout>
<ToastContainer
position="top-right"
autoClose={8000}
hideProgressBar={false}
newestOnTop={false}
draggable={false}
closeOnClick
pauseOnHover
/>
<Component {...pageProps} />
</Layout>
</PersistGate>
</Provider>
</div>
);
}
export default MyApp;