From 05b736ccf18949dd7cfed7a94fb8ef6e1ad27eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Thu, 11 Feb 2021 21:49:52 +0900 Subject: [PATCH] style: fixed deepscan --- components/Advertisement.tsx | 2 +- components/BotCard.tsx | 8 +------- pages/_app.tsx | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/components/Advertisement.tsx b/components/Advertisement.tsx index b2d9fd9..4f959da 100644 --- a/components/Advertisement.tsx +++ b/components/Advertisement.tsx @@ -2,7 +2,7 @@ import { useEffect } from 'react' const Advertisement = (): JSX.Element => { useEffect(() => { - if(process.env.NODE_ENV === 'production') window.adsbygoogle.push({}), [] + if(process.env.NODE_ENV === 'production') window.adsbygoogle.push({}) }) return
diff --git a/components/BotCard.tsx b/components/BotCard.tsx index ff4e096..5eb1cdd 100644 --- a/components/BotCard.tsx +++ b/components/BotCard.tsx @@ -66,13 +66,7 @@ const BotCard = ({ manage=false, bot }: BotProps): JSX.Element => { > 관리하기 - : : 초대하기 diff --git a/pages/_app.tsx b/pages/_app.tsx index a990f41..b1627fd 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -46,7 +46,7 @@ export default function App({ Component, pageProps, err }: KoreanbotsProps): JSX console.log(`[THEME] ${systemColor.toUpperCase()} THEME DETECTED`) setTheme(systemColor) } - else setTheme(localStorage.theme || 'system') + else setTheme('system') }, []) return (