Skip to content

Commit

Permalink
Chore : remove unused state variable #83
Browse files Browse the repository at this point in the history
Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
  • Loading branch information
bentshrimp committed Oct 6, 2023
1 parent 3a8152f commit c1e4494
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import MenuItem from "@mui/material/MenuItem";
import MenuIcon from "@mui/icons-material/Menu";
import LOGO from "../../src/assets/images/Logo.svg";
import axios from "axios";
import { useRecoilState } from "recoil";
import { useRecoilState, useSetRecoilState } from "recoil";
import { avatar, id, name, isLogin } from "../recoil/authorize";
import styled from "styled-components";

Expand Down Expand Up @@ -63,7 +63,7 @@ export const Header = (props) => {
const [src, setSrc] = useRecoilState(avatar);
const [userId, setUserId] = useRecoilState(id);
const [userName, setUserName] = useRecoilState(name);
const [login, setIsLogin] = useRecoilState(isLogin);
const setIsLogin = useSetRecoilState(isLogin);

const checkIsLogin = async () => {
const loggedIn = await checkTokenValid();
Expand All @@ -75,7 +75,6 @@ export const Header = (props) => {
localStorage.removeItem("id");
localStorage.removeItem("name");
localStorage.removeItem("avatar");

}
setIsLogin(loggedIn);
};
Expand Down

0 comments on commit c1e4494

Please sign in to comment.