-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_app.js
44 lines (33 loc) · 1.04 KB
/
_app.js
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
// import { useEffect } from "react";
// import Script from "next/script";
// import { useRouter } from "next/router";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
import { persistStore } from "redux-persist";
import Layout from "../layout/Layout";
import { store } from "../app/store";
// import { pageview } from "../@supplier-app/lib/gtm";
import "tailwindcss/tailwind.css";
import "../styles/globals.css";
let persistor = persistStore(store);
function MyApp({ Component, pageProps }) {
// const router = useRouter()
// useEffect(() => {
// router.events.on('routeChangeComplete', pageview)
// return () => {
// router.events.off('routeChangeComplete', pageview)
// }
// }, [router.events])
return (
<>
{/* <Provider store={store}>
<PersistGate loading={null} persistor={persistor}> */}
<Layout>
<Component {...pageProps} />
</Layout>
{/* </PersistGate>
</Provider> */}
</>
);
}
export default MyApp;