From 7e6db371cff1587b189107f0c371feb28972842a Mon Sep 17 00:00:00 2001 From: Spark Date: Mon, 2 Aug 2021 16:04:34 +0900 Subject: [PATCH] =?UTF-8?q?footer,=20login=EC=8B=9C=20korea.ac.kr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/Footer.js | 7 +++++-- client/src/components/LoginComp.js | 2 +- client/src/components/UsingAircon.js | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/client/src/components/Footer.js b/client/src/components/Footer.js index 9c1edd7..400fa13 100644 --- a/client/src/components/Footer.js +++ b/client/src/components/Footer.js @@ -11,7 +11,8 @@ function Footer() { style={{ fontSize: '0.8em' }}>
- © 2021 TEAM EUE. All rights reserved + © 2021 TEAM EUE. All rights reserved
+ 문의 : dev0gomgom@gmail.com TEAM EUE -
안강민, 박상호, 박예은 + +
+ 안강민, 박상호, 박예은 diff --git a/client/src/components/LoginComp.js b/client/src/components/LoginComp.js index 4b0b7e7..0a17653 100644 --- a/client/src/components/LoginComp.js +++ b/client/src/components/LoginComp.js @@ -40,7 +40,7 @@ function LoginComp() { const newLink = 'https://www.' + afterAt; window.location.replace(newLink); } - else if (afterAt == 'korea.ac.kr') { + if (afterAt === 'korea.ac.kr') { window.location.replace('https://www.gmail.com'); } } diff --git a/client/src/components/UsingAircon.js b/client/src/components/UsingAircon.js index 72e3a50..e091481 100644 --- a/client/src/components/UsingAircon.js +++ b/client/src/components/UsingAircon.js @@ -17,7 +17,9 @@ function UsingAircon() { useEffect(() => { callUserInfo().then((res) => { - setAirUsing(res[0]['using_aircon']) + if (isLogined()) { + setAirUsing(res[0]['using_aircon']) + } }) }, []) -- GitLab