@@ -168,12 +168,6 @@ const App = (props: AppProps) => {
168
168
169
169
const includeAds = ! [ '/' , '/api-keys' , '/status' ] . includes ( location . pathname ) ;
170
170
171
- React . useEffect ( ( ) => {
172
- if ( includeAds ) {
173
- ( window . adsbygoogle = window . adsbygoogle || [ ] ) . push ( { } ) ;
174
- }
175
- } , [ ] ) ;
176
-
177
171
return (
178
172
// @ts -ignore
179
173
< MuiThemeProvider muiTheme = { getMuiTheme ( darkBaseTheme , muiTheme ) } > { /* muiTheme types are missing here */ }
@@ -186,15 +180,6 @@ const App = (props: AppProps) => {
186
180
/>
187
181
< Header location = { location } />
188
182
< StyledBodyDiv { ...props } >
189
- < AdBannerDiv >
190
- { includeAds && config . VITE_ENABLE_ADSENSE && (
191
- < ins
192
- className = "adsbygoogle"
193
- style = { { display : 'block' , width : 728 , height : 90 , margin : 'auto' } }
194
- data-ad-client = "ca-pub-5591574346816667"
195
- data-ad-slot = "9789745633"
196
- /> ) }
197
- </ AdBannerDiv >
198
183
< Switch >
199
184
< Route exact path = "/" component = { Home } />
200
185
< Route exact path = "/matches/:matchId?/:info?" component = { Matches } />
@@ -236,14 +221,6 @@ const App = (props: AppProps) => {
236
221
</ div >
237
222
</ div >
238
223
) }
239
- { includeAds && config . VITE_ENABLE_ADSENSE && (
240
- < ins
241
- className = "adsbygoogle"
242
- style = { { display : 'block' , width : 728 , height : 90 , margin : 'auto' } }
243
- data-ad-client = "ca-pub-5591574346816667"
244
- data-ad-slot = "7739169508"
245
- />
246
- ) }
247
224
</ AdBannerDiv >
248
225
< Footer />
249
226
< Back2Top
@@ -270,4 +247,4 @@ const mapStateToProps = (state: any) => ({
270
247
} ) ;
271
248
272
249
// @ts -ignore
273
- export default connect ( mapStateToProps ) ( withRouter ( App ) ) ; // property 'strings' is missing in type
250
+ export default connect ( mapStateToProps ) ( withRouter ( App ) ) ; // property 'strings' is missing in type
0 commit comments