Skip to content

Commit

Permalink
remove adsense package
Browse files Browse the repository at this point in the history
  • Loading branch information
salihozdemir committed Dec 12, 2021
1 parent 93f9bff commit ee34a33
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
10 changes: 0 additions & 10 deletions client/components/layout/extra/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useContext } from 'react'
import AdSense from 'react-adsense'

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

Expand Down Expand Up @@ -30,15 +29,6 @@ const Extra = ({ marginTop = 24 }) => {
</Tag>
))}
</div>
<br />
<AdSense.Google
client="pub-6334314630314298"
slot="9982692432"
style={{ display: 'block' }}
format="auto"
responsive="true"
layoutKey="-gw-1+2a-9x+5c"
/>
</div>
</div>
)
Expand Down
5 changes: 0 additions & 5 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"next": "^9.4.4",
"nprogress": "^0.2.0",
"react": "^16.13.1",
"react-adsense": "^0.1.0",
"react-dom": "^16.13.1",
"react-tagsinput": "^3.19.0",
"slug": "^3.3.2",
Expand Down
4 changes: 2 additions & 2 deletions client/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class MyDocument extends Document {
</>
)}
<script
data-ad-client="ca-pub-6334314630314298"
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6334314630314298"
crossOrigin="anonymous"
></script>

{/* favicon */}
Expand Down

1 comment on commit ee34a33

@vercel
Copy link

@vercel vercel bot commented on ee34a33 Dec 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.