@@ -3,7 +3,6 @@ import { AppProps } from 'next/app'
3
3
import Head from 'next/head'
4
4
import NextLink from 'next/link'
5
5
import { useRouter } from 'next/router'
6
- import Script from 'next/script'
7
6
import { DefaultSeo , DefaultSeoProps } from 'next-seo'
8
7
import { useCallback , useMemo , useState } from 'react'
9
8
import useBus from 'use-bus'
@@ -105,55 +104,45 @@ const MyApp = ({ Component, pageProps }: AppProps) => {
105
104
)
106
105
107
106
return (
108
- < >
109
- < Script id = "tracking" type = "module" > { `
110
- const _paq = window._paq = window._paq || [];
111
- _paq.push(['trackPageView'], ['enableLinkTracking'], ['setTrackerUrl', 'https://thegraph.matomo.cloud/matomo.php'], ['setSiteId', '1']);
112
- const g = document.createElement('script');
113
- g.async = true;
114
- g.src = '//cdn.matomo.cloud/thegraph.matomo.cloud/matomo.js';
115
- document.body.append(g);
116
- ` } </ Script >
117
- < I18nProvider
118
- supportedLocales = { supportedLocales }
119
- translations = { translations }
120
- locale = { locale }
121
- setLocale = { setLocale }
122
- pathWithoutLocale = { pathWithoutLocale }
123
- >
124
- < DefaultSeoWithLocale />
125
- < ThemeProvider disableSmoothScrolling = { isSearchOpen ? true : disableSmoothScrolling } headComponent = { Head } >
126
- < div sx = { { position : 'absolute' , inset : 0 , overflow : 'hidden' } } >
127
- < div
128
- sx = { {
129
- position : 'absolute' ,
130
- top : 0 ,
131
- insetInline : 0 ,
132
- minHeight : '768px' ,
133
- backgroundImage : `url('${ process . env . BASE_PATH } /img/page-background.png')` ,
134
- backgroundSize : 'cover' ,
135
- backgroundPosition : 'center top' ,
136
- '@media (min-width: 1440px)' : {
137
- aspectRatio : '1440/768' ,
138
- } ,
139
- } }
140
- />
141
- </ div >
142
- < Layout
143
- headerSticky
144
- headerContent = {
145
- < div dir = "ltr" >
146
- < NavigationMarketing activeRoute = "/docs" NextLink = { NextLink } rightAlignItems = { [ localeSwitcher ] } />
147
- </ div >
148
- }
149
- mainContainer
150
- footerContent = { < Footer localeSwitcher = { localeSwitcher } /> }
151
- >
152
- < Component { ...pageProps } />
153
- </ Layout >
154
- </ ThemeProvider >
155
- </ I18nProvider >
156
- </ >
107
+ < I18nProvider
108
+ supportedLocales = { supportedLocales }
109
+ translations = { translations }
110
+ locale = { locale }
111
+ setLocale = { setLocale }
112
+ pathWithoutLocale = { pathWithoutLocale }
113
+ >
114
+ < DefaultSeoWithLocale />
115
+ < ThemeProvider disableSmoothScrolling = { isSearchOpen ? true : disableSmoothScrolling } headComponent = { Head } >
116
+ < div sx = { { position : 'absolute' , inset : 0 , overflow : 'hidden' } } >
117
+ < div
118
+ sx = { {
119
+ position : 'absolute' ,
120
+ top : 0 ,
121
+ insetInline : 0 ,
122
+ minHeight : '768px' ,
123
+ backgroundImage : `url('${ process . env . BASE_PATH } /img/page-background.png')` ,
124
+ backgroundSize : 'cover' ,
125
+ backgroundPosition : 'center top' ,
126
+ '@media (min-width: 1440px)' : {
127
+ aspectRatio : '1440/768' ,
128
+ } ,
129
+ } }
130
+ />
131
+ </ div >
132
+ < Layout
133
+ headerSticky
134
+ headerContent = {
135
+ < div dir = "ltr" >
136
+ < NavigationMarketing activeRoute = "/docs" NextLink = { NextLink } rightAlignItems = { [ localeSwitcher ] } />
137
+ </ div >
138
+ }
139
+ mainContainer
140
+ footerContent = { < Footer localeSwitcher = { localeSwitcher } /> }
141
+ >
142
+ < Component { ...pageProps } />
143
+ </ Layout >
144
+ </ ThemeProvider >
145
+ </ I18nProvider >
157
146
)
158
147
}
159
148
0 commit comments