add
This commit is contained in:
parent
0fe62d9347
commit
836c116a3d
|
@ -7,6 +7,7 @@ import { Course, LectureType, PostType } from "@nice/common";
|
||||||
import { CourseDetailContext } from "./CourseDetailContext";
|
import { CourseDetailContext } from "./CourseDetailContext";
|
||||||
import CollapsibleContent from "@web/src/components/common/container/CollapsibleContent";
|
import CollapsibleContent from "@web/src/components/common/container/CollapsibleContent";
|
||||||
import { Skeleton } from "antd";
|
import { Skeleton } from "antd";
|
||||||
|
import { CoursePreview } from "./CoursePreview/CoursePreview";
|
||||||
|
|
||||||
// interface CourseDetailDisplayAreaProps {
|
// interface CourseDetailDisplayAreaProps {
|
||||||
// // course: Course;
|
// // course: Course;
|
||||||
|
@ -27,15 +28,7 @@ export const CourseDetailDisplayArea: React.FC = () => {
|
||||||
{lectureIsLoading && (
|
{lectureIsLoading && (
|
||||||
<Skeleton active paragraph={{ rows: 4 }} title={false} />
|
<Skeleton active paragraph={{ rows: 4 }} title={false} />
|
||||||
)}
|
)}
|
||||||
{!selectedLectureId && !lectureIsLoading && (
|
|
||||||
<>
|
|
||||||
<div className="flex justify-center flex-col items-center gap-2 w-full my-2 px-4">
|
|
||||||
<div className="w-full bg-white shadow-md rounded-lg border border-gray-200 p-6 ">
|
|
||||||
{"123"}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
{selectedLectureId &&
|
{selectedLectureId &&
|
||||||
!lectureIsLoading &&
|
!lectureIsLoading &&
|
||||||
lecture?.meta?.type === LectureType.VIDEO && (
|
lecture?.meta?.type === LectureType.VIDEO && (
|
||||||
|
@ -64,10 +57,7 @@ export const CourseDetailDisplayArea: React.FC = () => {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="flex justify-center flex-col items-center gap-2 w-full my-2 px-4">
|
<div className="flex justify-center flex-col items-center gap-2 w-full my-2 px-4">
|
||||||
<CourseDetailDescription
|
<CourseDetailDescription />
|
||||||
course={course}
|
|
||||||
isLoading={isLoading}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
{/* 课程内容区域 */}
|
{/* 课程内容区域 */}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue