Добавлен компонент CourseStatistics для отображения статистики курса, включая общее количество уроков, посещаемость, количество студентов и информацию о следующем занятии. Обновлены локализации для поддержки новых статистических данных.

This commit is contained in:
2025-03-23 17:56:51 +03:00
parent bc33de2721
commit b37c96f640
4 changed files with 341 additions and 2 deletions
+7
View File
@@ -40,6 +40,7 @@ import { LessonForm } from './components/lessons-form'
import { Bar } from './components/bar'
import { LessonItems } from './components/lesson-items'
import { BreadcrumbsWrapper } from './style'
import { CourseStatistics } from './components/statistics'
const features = getFeatures('journal')
@@ -346,6 +347,12 @@ const LessonList = () => {
)}
</Box>
)}
{/* Статистика курса */}
{!showForm && (
<CourseStatistics lessons={sorted} isLoading={isLoading} />
)}
{barFeature && sorted?.length > 1 && (
<Box height="300">
<Bar