Skip to content

Commit

Permalink
Fix: eslint 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hwna00 committed Sep 25, 2023
1 parent be94aa2 commit 53c019a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
5 changes: 1 addition & 4 deletions packages/apps/user/src/components/Root/AuthRoot.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
5 changes: 2 additions & 3 deletions packages/apps/user/src/components/Root/Root.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -14,7 +13,7 @@ const Root = function () {
return (
<>
{userLoading ? (
<LoadingPage />
<Text>Loading..</Text>
) : user ? (
<>
<SideBar />
Expand Down
17 changes: 2 additions & 15 deletions packages/apps/user/src/views/Auth/LogIn/LogIn.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -22,15 +22,14 @@ 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);
const handleShowClick = useCallback(() => {
setShowPassword(!showPassword);
}, [showPassword]);

const navigate = useNavigate();
const {
register,
handleSubmit,
Expand All @@ -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 (
<Flex
flexDirection="column"
Expand Down

0 comments on commit 53c019a

Please sign in to comment.