fix: ad causing error

This commit is contained in:
Junseo Park 2021-02-14 22:34:52 +09:00
parent 0ae3757b33
commit 99545ad632

View File

@ -5,8 +5,8 @@ const Advertisement = ({ size='short' }:AdvertisementProps): JSX.Element => {
if(process.env.NODE_ENV === 'production') {
window.adsbygoogle = window.adsbygoogle || []
window.adsbygoogle.push({})
}
})
} else console.log('Ads Pushed')
}, [])
return <div className={`z-0 mx-auto w-full text-center text-white ${process.env.NODE_ENV === 'production' ? '' : 'py-12 bg-gray-700'}`} style={size === 'short' ? { height: '90px' } : { height: '330px'}}>
{