完整的教务系统前端项目 - 包含所有修复和9月份数据
This commit is contained in:
26
src/pages/LivePage/index.jsx
Normal file
26
src/pages/LivePage/index.jsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import { useState } from "react";
|
||||
import CoursesVideoPlayer from "@/components/CoursesVideoPlayer";
|
||||
import CourseList from "@/components/CourseList";
|
||||
import StageProgress from "@/components/StageProgress";
|
||||
import { mockData } from "@/data/mockData";
|
||||
import "./index.css";
|
||||
|
||||
const LivePage = () => {
|
||||
const [selectedCourse, setSelectedCourse] = useState(null);
|
||||
|
||||
const handleCourseClick = (course) => {
|
||||
setSelectedCourse(course);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="live-page">
|
||||
<StageProgress />
|
||||
<div className="live-page-content">
|
||||
<CoursesVideoPlayer selectedCourse={selectedCourse} teacherData={mockData.teacherData} unitPosters={mockData.unitPosters} />
|
||||
<CourseList onCourseClick={handleCourseClick} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default LivePage;
|
||||
Reference in New Issue
Block a user