Skip to content

Commit

Permalink
feat: useCheckLogin 삭제 및 탭바 로그인 예외 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
lydiacho committed Feb 21, 2024
1 parent e134e1d commit 7a3effc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
10 changes: 6 additions & 4 deletions src/common/SideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ const SideMenu = ({ isSideMenuOpen, setIsSideMenuOpen }: SideMenuProps) => {
};

const handleClickMyTattooButton = () => {
navigate('/my-tattoo');
isLogin ? navigate('/my-tattoo') : navigate('/login');
};

const handleClickCartButton = () => {
isLogin ? navigate('/cart') : navigate('/login');
};

const NAV_MENU_ITEM = [
Expand All @@ -47,9 +51,7 @@ const SideMenu = ({ isSideMenuOpen, setIsSideMenuOpen }: SideMenuProps) => {
{
icon: <IcCart />,
text: '장바구니',
clickHandler: () => {
navigate('/cart');
},
clickHandler: handleClickCartButton,
},
];

Expand Down
16 changes: 0 additions & 16 deletions src/libs/hooks/useCheckLogin.ts

This file was deleted.

0 comments on commit 7a3effc

Please sign in to comment.