From 3a4d78be8a3dcf416e62cd41c54f6025883100ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Thu, 4 Feb 2021 12:30:12 +0900 Subject: [PATCH] fix: ads --- components/Advertisement.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/components/Advertisement.tsx b/components/Advertisement.tsx index 46517e0..7727ede 100644 --- a/components/Advertisement.tsx +++ b/components/Advertisement.tsx @@ -1,7 +1,7 @@ const Advertisement = (): JSX.Element => { - if (process.env.NODE_ENV === 'production') - return ( - + { + process.env.NODE_ENV === 'production' ? { data-ad-format='auto' data-adtest='on' data-full-width-responsive='true' - > - ) - else - return
Advertisement
+ >
: 'Advertisement' + } } export default Advertisement