File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
- import React , { useEffect , useState } from 'react' ;
1
+ import React , { useEffect } from 'react' ;
2
2
import styled from 'styled-components' ;
3
3
import { mediaQuery } from '../../lib/styles/media' ;
4
4
5
5
function AdFeed ( ) {
6
- const [ isMobile , setIsMobile ] = useState ( false ) ;
6
+ // const [isMobile, setIsMobile] = useState(false);
7
7
8
- useEffect ( ( ) => {
9
- const width = window . innerWidth ;
10
- if ( width < 768 ) {
11
- setIsMobile ( true ) ;
12
- }
8
+ // useEffect(() => {
9
+ // const width = window.innerWidth;
10
+ // if (width < 768) {
11
+ // setIsMobile(true);
12
+ // }
13
13
14
- setTimeout ( ( ) => {
15
- ( window . adsbygoogle = window . adsbygoogle || [ ] ) . push ( { } ) ;
16
- } , 250 ) ;
14
+ // setTimeout(() => {
15
+ // (window.adsbygoogle = window.adsbygoogle || []).push({});
16
+ // }, 250);
17
+ // }, []);
18
+ useEffect ( ( ) => {
19
+ ( window . adsbygoogle = window . adsbygoogle || [ ] ) . push ( { } ) ;
17
20
} , [ ] ) ;
18
21
19
22
return (
You can’t perform that action at this time.
0 commit comments