Skip to content

Commit

Permalink
refactor: 사용하지 않는 훅 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
junghaesung79 committed Jun 26, 2024
1 parent 29fa965 commit 2d32440
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
3 changes: 0 additions & 3 deletions src/layout/Header/MobilePanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { CATEGORY_COOP, HeaderCategory } from 'models/headerCategory';
import { useLogout } from 'query/auth';
import usePrevPathStore from 'store/usePrevPathStore';
import useUserStore from 'store/useUserStore';
import useUserTypeStore from 'store/useUserTypeStore';
import cn from 'utils/className';

import { createPortal } from 'react-dom';
Expand Down Expand Up @@ -57,7 +56,6 @@ export default function MobilePanel() {
const { pathname } = useLocation();
const { isMobile } = useMediaQuery();
const { user } = useUserStore();
const { setUserType } = useUserTypeStore();

const { setPrevPath } = usePrevPathStore();
const { logout } = useLogout();
Expand All @@ -75,7 +73,6 @@ export default function MobilePanel() {
navigate('/login');
},
});
await getCoopMe().then((userInfo) => setUserType(userInfo.user_type));
};

return (
Expand Down
15 changes: 0 additions & 15 deletions src/store/useUserTypeStore.ts

This file was deleted.

0 comments on commit 2d32440

Please sign in to comment.