feat: liveButton에 실제 온라인 여부 적용

This commit is contained in:
정기영 2024-08-07 09:55:36 +09:00
parent 01444ea4e4
commit 41b72b3da8

View File

@ -16,6 +16,7 @@ export default function LectureLayout() {
const { lectureDelete } = useLectureDelete();
const { data } = useLectureInfo(lectureId);
const lecture = data?.data;
console.log(lecture);
const userType = useBoundStore((state) => state.userType);
const handleDelete = async () => {
await lectureDelete(lectureId);
@ -36,8 +37,7 @@ export default function LectureLayout() {
title={lecture.title}
tutor={lecture.teacherName}
img={lecture.image}
// TODO: isLive
isLive={true}
isLive={lecture.online}
/>
<MaxWidthLayout hasSideBar>
<aside>