- claudedocs 폴더 구조 재정리: archive/sessions, guides/migration·mobile·universal-list, refactoring 분류 - 오래된 세션 컨텍스트/체크리스트 문서 정리 (아카이브 이동 또는 삭제) - AuthContext → authStore(Zustand) 전환 시작, RootProvider 간소화 - GenericCRUDDialog 공통 다이얼로그 컴포넌트 추가 - PermissionDialog 삭제 → GenericCRUDDialog로 대체 - RankDialog/TitleDialog GenericCRUDDialog 기반으로 리팩토링 - toast-utils.ts 삭제 (미사용) - fileDownload.ts 개선, excel-download.ts 정리 - menuStore/themeStore Zustand 셀렉터 최적화 - useColumnSettings/useTableColumnStore 기능 보강 - 세금계산서/견적/작업자화면/결재 등 소규모 개선 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
756 B
TypeScript
26 lines
756 B
TypeScript
'use client';
|
|
|
|
/**
|
|
* AuthContext - 하위호환 re-export 심
|
|
*
|
|
* 실제 구현은 src/stores/authStore.ts (Zustand)로 이동됨.
|
|
* 기존 import { useAuth } from '@/contexts/AuthContext' 코드가
|
|
* 깨지지 않도록 타입과 훅을 re-export.
|
|
*/
|
|
|
|
import { type ReactNode } from 'react';
|
|
import { useAuthStore } from '@/stores/authStore';
|
|
|
|
// 타입 re-export
|
|
export type { Tenant, Role, MenuItem, User, UserRole } from '@/stores/authStore';
|
|
|
|
// AuthProvider: 빈 passthrough (미발견 import 안전망)
|
|
export function AuthProvider({ children }: { children: ReactNode }) {
|
|
return <>{children}</>;
|
|
}
|
|
|
|
// useAuth: authStore 전체 상태를 반환 (기존 Context 인터페이스 유지)
|
|
export function useAuth() {
|
|
return useAuthStore();
|
|
}
|