diff --git a/bro.config.js b/bro.config.js index f95d148..96b420c 100644 --- a/bro.config.js +++ b/bro.config.js @@ -34,6 +34,11 @@ module.exports = { value: '', key: 'group.by.date', }, + 'course.statistics': { + on: true, + value: '', + key: 'course.statistics', + }, }, }, config: { diff --git a/src/pages/lesson-list/lesson-list.tsx b/src/pages/lesson-list/lesson-list.tsx index ae31dab..8a00576 100644 --- a/src/pages/lesson-list/lesson-list.tsx +++ b/src/pages/lesson-list/lesson-list.tsx @@ -46,6 +46,7 @@ const features = getFeatures('journal') const barFeature = features?.['lesson.bar'] const groupByDate = features?.['group.by.date'] +const courseStatistics = features?.['course.statistics'] const LessonList = () => { const { courseId } = useParams() @@ -349,7 +350,7 @@ const LessonList = () => { )} {/* Статистика курса */} - {!showForm && ( + {!showForm && courseStatistics && ( <CourseStatistics lessons={sorted} isLoading={isLoading} /> )}