AdminSchedule에도 AdminLayout 적용
- AdminHeader를 AdminLayout으로 교체 - 내부 레이아웃을 h-full flex flex-col overflow-hidden으로 조정 - 모든 Admin 페이지가 통일된 레이아웃 구조 사용
This commit is contained in:
parent
1d86c6b841
commit
2e46d1cf71
1 changed files with 6 additions and 9 deletions
|
|
@ -11,7 +11,7 @@ import { useInView } from 'react-intersection-observer';
|
||||||
|
|
||||||
import Toast from '../../../components/Toast';
|
import Toast from '../../../components/Toast';
|
||||||
import Tooltip from '../../../components/Tooltip';
|
import Tooltip from '../../../components/Tooltip';
|
||||||
import AdminHeader from '../../../components/admin/AdminHeader';
|
import AdminLayout from '../../../components/admin/AdminLayout';
|
||||||
import ConfirmDialog from '../../../components/admin/ConfirmDialog';
|
import ConfirmDialog from '../../../components/admin/ConfirmDialog';
|
||||||
import useScheduleStore from '../../../stores/useScheduleStore';
|
import useScheduleStore from '../../../stores/useScheduleStore';
|
||||||
import useToast from '../../../hooks/useToast';
|
import useToast from '../../../hooks/useToast';
|
||||||
|
|
@ -576,7 +576,7 @@ function AdminSchedule() {
|
||||||
}, [categories, categoryCounts]);
|
}, [categories, categoryCounts]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="h-screen overflow-hidden bg-gray-50 flex flex-col">
|
<AdminLayout user={user}>
|
||||||
<Toast toast={toast} onClose={() => setToast(null)} />
|
<Toast toast={toast} onClose={() => setToast(null)} />
|
||||||
|
|
||||||
{/* 삭제 확인 다이얼로그 */}
|
{/* 삭제 확인 다이얼로그 */}
|
||||||
|
|
@ -597,11 +597,8 @@ function AdminSchedule() {
|
||||||
loading={deleting}
|
loading={deleting}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* 헤더 */}
|
{/* 메인 콘텐츠 - 전체 높이 차지 */}
|
||||||
<AdminHeader user={user} />
|
<div className="h-full flex flex-col overflow-hidden max-w-7xl mx-auto px-6 py-8 w-full">
|
||||||
|
|
||||||
{/* 메인 콘텐츠 */}
|
|
||||||
<main className="flex-1 flex flex-col overflow-hidden max-w-7xl mx-auto px-6 py-8 w-full">
|
|
||||||
{/* 브레드크럼 */}
|
{/* 브레드크럼 */}
|
||||||
<div className="flex-shrink-0 flex items-center gap-2 text-sm text-gray-400 mb-8">
|
<div className="flex-shrink-0 flex items-center gap-2 text-sm text-gray-400 mb-8">
|
||||||
<Link to="/admin/dashboard" className="hover:text-primary transition-colors">
|
<Link to="/admin/dashboard" className="hover:text-primary transition-colors">
|
||||||
|
|
@ -1232,8 +1229,8 @@ function AdminSchedule() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</div>
|
||||||
</div>
|
</AdminLayout>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue