This commit is contained in:
원더 2021-02-04 12:30:12 +09:00
parent b9f4c8b597
commit 3a4d78be8a

View File

@ -1,7 +1,7 @@
const Advertisement = (): JSX.Element => { const Advertisement = (): JSX.Element => {
if (process.env.NODE_ENV === 'production') return <div className='my-5 mx-auto py-12 w-full text-center text-white bg-gray-700'>
return ( {
<ins process.env.NODE_ENV === 'production' ? <ins
className='adsbygoogle mb-5 w-full' className='adsbygoogle mb-5 w-full'
style={{ display: 'block' }} style={{ display: 'block' }}
data-ad-client='ca-pub-4856582423981759' data-ad-client='ca-pub-4856582423981759'
@ -9,10 +9,8 @@ const Advertisement = (): JSX.Element => {
data-ad-format='auto' data-ad-format='auto'
data-adtest='on' data-adtest='on'
data-full-width-responsive='true' data-full-width-responsive='true'
></ins> ></ins> : 'Advertisement'
) }</div>
else
return <div className='my-5 py-12 w-full text-center text-white bg-gray-700'>Advertisement</div>
} }
export default Advertisement export default Advertisement