Skip to content

Commit

Permalink
Feat: 로그아웃 버튼 재생성 및 로그인 상태관리 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
cjy3458 committed Mar 9, 2024
1 parent 3a93572 commit 555954f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/common/header/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface IMenu {

const NavBar = () => {
const { access: tokenState } = useRecoilValue(token);
const [isLogin, setIsLogin] = useState(true);
const [isLogin, setIsLogin] = useState(false);

useEffect(() => {
if (tokenState) setIsLogin(true);
Expand Down
2 changes: 1 addition & 1 deletion src/components/mypage/component/NameCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const NameCard = ({ name, generation }: { name: string; generation: number }) =>
<span>{generation}</span>기 &nbsp;
<span>{name}</span>
</Text>
{/* <LogoutButton /> */}
<LogoutButton />
</Wrapper>
);
};
Expand Down

0 comments on commit 555954f

Please sign in to comment.