Skip to content

Commit b1dfb1b

Browse files
committed
chore: remove ad
1 parent 690febf commit b1dfb1b

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

components/Advertisement.tsx

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,7 @@
11
import AdSense from 'react-adsense'
22

33
const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
4-
return (
5-
<div className='py-5'>
6-
<div
7-
className={`z-0 mx-auto w-full text-center text-white ${
8-
process.env.NODE_ENV === 'production' ? '' : 'bg-gray-700 py-12'
9-
}`}
10-
style={size === 'short' ? { height: '90px' } : { height: '330px' }}
11-
>
12-
{process.env.NODE_ENV === 'production' ? (
13-
<AdSense.Google
14-
style={{
15-
display: 'inline-block',
16-
width: '100%',
17-
height: size === 'short' ? '90px' : '330px',
18-
}}
19-
client='ca-pub-4856582423981759'
20-
slot='3250141451'
21-
format=''
22-
/>
23-
) : (
24-
'Advertisement'
25-
)}
26-
</div>
27-
</div>
28-
)
4+
return null
295
}
306

317
declare global {

0 commit comments

Comments
 (0)