From 44c4d152b7583bf552000e09a465bd3ea292e05c Mon Sep 17 00:00:00 2001 From: ditiqi Date: Mon, 24 Feb 2025 09:41:48 +0800 Subject: [PATCH] add --- .../course/detail/CourseDetailDisplayArea.tsx | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx b/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx index 1a6a7b8..b5aed44 100755 --- a/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx +++ b/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx @@ -27,7 +27,7 @@ export const CourseDetailDisplayArea: React.FC = () => { {lectureIsLoading && ( )} - {!selectedLectureId && ( + {!selectedLectureId && !lectureIsLoading && ( <>
@@ -36,20 +36,23 @@ export const CourseDetailDisplayArea: React.FC = () => {
)} - {!lectureIsLoading && lecture?.meta?.type === LectureType.VIDEO && ( -
- -
- -
-
-
- )} + {selectedLectureId && + !lectureIsLoading && + lecture?.meta?.type === LectureType.VIDEO && ( +
+ +
+ +
+
+
+ )} {!lectureIsLoading && + selectedLectureId && lecture?.meta?.type === LectureType.ARTICLE && (