fix(Advertisement): checking if it is production

This commit is contained in:
wonderlandpark 2021-06-02 13:14:48 +09:00
parent 5820b70afd
commit 86621cc4a5

View File

@ -4,11 +4,11 @@ const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
return <div className='py-5'>
<div
className={`z-0 mx-auto w-full text-center text-white ${
true ? '' : 'py-12 bg-gray-700'
process.env.NODE_ENV === 'production' ? '' : 'py-12 bg-gray-700'
}`}
style={size === 'short' ? { height: '90px' } : { height: '330px' }}
>
{true ? (
{process.env.NODE_ENV === 'production' ? (
<AdSense.Google
style={{ display: 'inline-block', width: '100%', height: size === 'short' ? '90px' : '330px'}}
client='ca-pub-4856582423981759'