Skip to content

Commit ee34a33

Browse files
committed
remove adsense package
1 parent 93f9bff commit ee34a33

4 files changed

Lines changed: 2 additions & 18 deletions

File tree

client/components/layout/extra/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useContext } from 'react'
2-
import AdSense from 'react-adsense'
32

43
import { TagContext } from '../../../store/tag'
54

@@ -30,15 +29,6 @@ const Extra = ({ marginTop = 24 }) => {
3029
</Tag>
3130
))}
3231
</div>
33-
<br />
34-
<AdSense.Google
35-
client="pub-6334314630314298"
36-
slot="9982692432"
37-
style={{ display: 'block' }}
38-
format="auto"
39-
responsive="true"
40-
layoutKey="-gw-1+2a-9x+5c"
41-
/>
4232
</div>
4333
</div>
4434
)

client/package-lock.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"next": "^9.4.4",
2424
"nprogress": "^0.2.0",
2525
"react": "^16.13.1",
26-
"react-adsense": "^0.1.0",
2726
"react-dom": "^16.13.1",
2827
"react-tagsinput": "^3.19.0",
2928
"slug": "^3.3.2",

client/pages/_document.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class MyDocument extends Document {
4646
</>
4747
)}
4848
<script
49-
data-ad-client="ca-pub-6334314630314298"
5049
async
51-
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
50+
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6334314630314298"
51+
crossOrigin="anonymous"
5252
></script>
5353

5454
{/* favicon */}

0 commit comments

Comments
 (0)