From 53c019a69970758abebd1b6af959396d9fc31122 Mon Sep 17 00:00:00 2001 From: hwna00 Date: Mon, 25 Sep 2023 20:33:04 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20eslint=20=EC=97=90=EB=9F=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/user/src/components/Root/AuthRoot.js | 5 +---- packages/apps/user/src/components/Root/Root.js | 5 ++--- .../apps/user/src/views/Auth/LogIn/LogIn.js | 17 ++--------------- 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/packages/apps/user/src/components/Root/AuthRoot.js b/packages/apps/user/src/components/Root/AuthRoot.js index d23e557e..17cda078 100644 --- a/packages/apps/user/src/components/Root/AuthRoot.js +++ b/packages/apps/user/src/components/Root/AuthRoot.js @@ -1,7 +1,4 @@ -import { Outlet, useNavigate } from 'react-router-dom'; -import LoadingPage from "@housepital/common/LoadingPage"; - -import useUser from '../../hooks/useUser'; +import { Outlet } from 'react-router-dom'; const AuthRoot = function () { // const navigate = useNavigate(); diff --git a/packages/apps/user/src/components/Root/Root.js b/packages/apps/user/src/components/Root/Root.js index 042abfca..44d906cb 100644 --- a/packages/apps/user/src/components/Root/Root.js +++ b/packages/apps/user/src/components/Root/Root.js @@ -1,6 +1,5 @@ import { Outlet, useNavigate } from 'react-router-dom'; -import LoadingPage from "@housepital/common/LoadingPage"; -import { Box } from '@chakra-ui/react'; +import { Box, Text } from '@chakra-ui/react'; import StatusBar from '../StatusBar/StatusBar'; import SideBar from '../SideBar/SideBar'; @@ -14,7 +13,7 @@ const Root = function () { return ( <> {userLoading ? ( - + Loading.. ) : user ? ( <> diff --git a/packages/apps/user/src/views/Auth/LogIn/LogIn.js b/packages/apps/user/src/views/Auth/LogIn/LogIn.js index d80acdf2..03e4f46e 100644 --- a/packages/apps/user/src/views/Auth/LogIn/LogIn.js +++ b/packages/apps/user/src/views/Auth/LogIn/LogIn.js @@ -1,6 +1,6 @@ import { useCallback, useState } from 'react'; -import { useNavigate, Link as ReactRouterLink } from 'react-router-dom'; +import { Link as ReactRouterLink } from 'react-router-dom'; import { FaUserAlt, FaLock } from 'react-icons/fa'; import { AiFillGoogleCircle, AiFillTwitterCircle } from 'react-icons/ai'; import { useForm } from 'react-hook-form'; @@ -22,7 +22,7 @@ import { } from '@chakra-ui/react'; import NaverLoginButton from '../../../components/NaverLoginButton/NaverLoginButton'; -import { googleLogin, fbLogIn } from '../../../../firebase'; +import { fbLogIn } from '../../../../firebase'; function LogIn() { const [showPassword, setShowPassword] = useState(false); @@ -30,7 +30,6 @@ function LogIn() { setShowPassword(!showPassword); }, [showPassword]); - const navigate = useNavigate(); const { register, handleSubmit, @@ -41,18 +40,6 @@ function LogIn() { fbLogIn(data); }; - // const googleClick = useCallback(() => { - // googleLogin(auth, provider) - // .then(result => { - // console.log(result); - // navigate('/'); - // }) - // .catch(error => { - // console.log(error); - // navigate('/error'); - // }); - // }, [navigate]); - return (