refactor(front): auth — SidebarFooter 이동
- SidebarFooter(공급사명·로그아웃)를 list에서 auth로 이동 (도메인 일치) - useLoginMutation 주석 정리 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a56e225032
commit
32db1300e0
21
front/src/features/auth/components/SidebarFooter.tsx
Normal file
21
front/src/features/auth/components/SidebarFooter.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import { Button } from '@/components'
|
||||
|
||||
// 사이드바 하단: 공급사명 + 로그아웃
|
||||
export function SidebarFooter() {
|
||||
return (
|
||||
<div className="flex w-full h-[60px] py-3 px-8 gap-3 items-center">
|
||||
<div className="flex-1 flex items-center min-w-0 text-sm text-foreground">
|
||||
{/* TODO: 공급사명 (auth store 연동) */}
|
||||
<span className="truncate">-</span>
|
||||
</div>
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
className="w-[61px] px-2 rounded-[4px] text-xs flex-shrink-0"
|
||||
// TODO: 로그아웃 mutation 연동
|
||||
>
|
||||
로그아웃
|
||||
</Button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@ -5,16 +5,9 @@ export interface LoginParams {
|
||||
password: string
|
||||
}
|
||||
|
||||
/**
|
||||
* 로그인 mutation (임시 stub).
|
||||
*
|
||||
* TODO: mutationFn 을 실제 백엔드 호출로 교체.
|
||||
* 현재는 API 미연동 상태라 검증만 통과하면 성공 처리한다.
|
||||
*/
|
||||
// 임시 stub (검증만 통과하면 성공). TODO: 로그인 API 연동
|
||||
export function useLoginMutation() {
|
||||
return useMutation<void, Error, LoginParams>({
|
||||
mutationFn: async () => {
|
||||
// TODO: 실제 로그인 API 연동
|
||||
},
|
||||
mutationFn: async () => {},
|
||||
})
|
||||
}
|
||||
|
||||
@ -1 +1,2 @@
|
||||
export { LoginForm } from '@/features/auth/components/LoginForm'
|
||||
export { SidebarFooter } from '@/features/auth/components/SidebarFooter'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user