feat: liveButton에 실제 온라인 여부 적용
This commit is contained in:
parent
01444ea4e4
commit
41b72b3da8
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user