From 32db1300e013b2ce0c7589750b7d144ad3d91b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AF=BC=ED=97=8C?= Date: Wed, 17 Jun 2026 10:47:38 +0900 Subject: [PATCH] =?UTF-8?q?refactor(front):=20auth=20=E2=80=94=20SidebarFo?= =?UTF-8?q?oter=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SidebarFooter(공급사명·로그아웃)를 list에서 auth로 이동 (도메인 일치) - useLoginMutation 주석 정리 Co-Authored-By: Claude Opus 4.8 (1M context) --- .../auth/components/SidebarFooter.tsx | 21 +++++++++++++++++++ .../features/auth/hooks/useLoginMutation.ts | 11 ++-------- front/src/features/auth/index.ts | 1 + 3 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 front/src/features/auth/components/SidebarFooter.tsx diff --git a/front/src/features/auth/components/SidebarFooter.tsx b/front/src/features/auth/components/SidebarFooter.tsx new file mode 100644 index 0000000..aeca1d5 --- /dev/null +++ b/front/src/features/auth/components/SidebarFooter.tsx @@ -0,0 +1,21 @@ +import { Button } from '@/components' + +// 사이드바 하단: 공급사명 + 로그아웃 +export function SidebarFooter() { + return ( +
+
+ {/* TODO: 공급사명 (auth store 연동) */} + - +
+ +
+ ) +} diff --git a/front/src/features/auth/hooks/useLoginMutation.ts b/front/src/features/auth/hooks/useLoginMutation.ts index d783d7f..3295d41 100644 --- a/front/src/features/auth/hooks/useLoginMutation.ts +++ b/front/src/features/auth/hooks/useLoginMutation.ts @@ -5,16 +5,9 @@ export interface LoginParams { password: string } -/** - * 로그인 mutation (임시 stub). - * - * TODO: mutationFn 을 실제 백엔드 호출로 교체. - * 현재는 API 미연동 상태라 검증만 통과하면 성공 처리한다. - */ +// 임시 stub (검증만 통과하면 성공). TODO: 로그인 API 연동 export function useLoginMutation() { return useMutation({ - mutationFn: async () => { - // TODO: 실제 로그인 API 연동 - }, + mutationFn: async () => {}, }) } diff --git a/front/src/features/auth/index.ts b/front/src/features/auth/index.ts index 3510753..2b91506 100644 --- a/front/src/features/auth/index.ts +++ b/front/src/features/auth/index.ts @@ -1 +1,2 @@ export { LoginForm } from '@/features/auth/components/LoginForm' +export { SidebarFooter } from '@/features/auth/components/SidebarFooter'