Skip to content

Commit c64e1ef

Browse files
committed
Remove unused code
1 parent c2d2b0a commit c64e1ef

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/components/common/AdFeed.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
import React, { useEffect, useState } from 'react';
1+
import React, { useEffect } from 'react';
22
import styled from 'styled-components';
33
import { mediaQuery } from '../../lib/styles/media';
44

55
function AdFeed() {
6-
const [isMobile, setIsMobile] = useState(false);
6+
// const [isMobile, setIsMobile] = useState(false);
77

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+
// }
1313

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({});
1720
}, []);
1821

1922
return (

0 commit comments

Comments
 (0)