fix: 코드 테스트용 주석 제거

This commit is contained in:
FF 2024-08-03 10:11:48 +09:00
parent 4c958a68d9
commit ef4e56c860

View File

@ -13,26 +13,26 @@ export default function LectureLayout() {
const { lectureId } = useParams();
const navigate = useNavigate();
// const { lectureDelete } = useLectureDelete();
// const { data } = useLectureInfo(lectureId);
// const lecture = data?.data;
// const userType = useBoundStore((state) => state.userType);
// const handleDelete = () => {
// lectureDelete(lectureId);
// navigate('..');
// };
// const lectureData = {
// title: lecture.title,
// description: lecture.description,
// plan: lecture.plan,
// startDate: lecture.startDate,
// endDate: lecture.endDate,
// time: lecture.time,
// };
// console.log(lectureData);
const { lectureDelete } = useLectureDelete();
const { data } = useLectureInfo(lectureId);
const lecture = data?.data;
const userType = useBoundStore((state) => state.userType);
const handleDelete = () => {
lectureDelete(lectureId);
navigate('..');
};
const lectureData = {
title: lecture.title,
description: lecture.description,
plan: lecture.plan,
startDate: lecture.startDate,
endDate: lecture.endDate,
time: lecture.time,
};
console.log(lectureData);
return (
<>
{/* <LectureHeader
<LectureHeader
title={lecture.title}
tutor={lecture.teacherName}
img={lecture.image}
@ -80,13 +80,13 @@ export default function LectureLayout() {
/>
</SideBar>
)}
</aside> */}
</aside>
<main>
<Suspense fallback={<LoadingIndicator fill />}>
<Outlet />
</Suspense>
</main>
{/* </MaxWidthLayout> */}
</MaxWidthLayout>
</>
);
}