Skip to content

Commit 4df339f

Browse files
committed
[PopulationStatistics][Courses of class] Rename 'Show all courses or modules'
1 parent 0b2349d commit 4df339f

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

services/frontend/src/components/PopulationDetails/CourseTableModeSelector.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ type CourseTableModeSelectorProps = {
1919
setCurriculum: Dispatch<SetStateAction<CurriculumOption | null>>
2020
studentAmountLimit: number
2121
onStudentAmountLimitChange: (input: string) => void
22-
showModules: boolean
2322
}
2423

2524
export const CourseTableModeSelector = ({
@@ -30,7 +29,6 @@ export const CourseTableModeSelector = ({
3029
curriculumList,
3130
setCurriculum,
3231
studentAmountLimit,
33-
showModules,
3432
}: CourseTableModeSelectorProps) => (
3533
<RadioGroup>
3634
<Box>
@@ -59,7 +57,6 @@ export const CourseTableModeSelector = ({
5957
<StudentAmountLimiter
6058
disabled={courseTableMode !== 'all'}
6159
onStudentAmountLimitChange={value => onStudentAmountLimitChange(value.toString())}
62-
showModules={showModules}
6360
studentAmountLimit={studentAmountLimit}
6461
/>
6562
</>

services/frontend/src/components/PopulationDetails/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ export const PopulationDetails = ({
126126
onStudentAmountLimitChange={onStudentAmountLimitChange}
127127
setCourseTableMode={setCourseTableMode}
128128
setCurriculum={setCurriculum}
129-
showModules={showModules}
130129
studentAmountLimit={studentAmountLimit}
131130
/>
132131
<PopulationCourses

services/frontend/src/components/common/StudentAmountLimiter.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ export const StudentAmountLimiter = ({
66
onStudentAmountLimitChange,
77
studentAmountLimit,
88
disabled = false,
9-
showModules = false,
109
}: {
1110
onStudentAmountLimitChange: (value: string | number) => void
1211
studentAmountLimit: number
13-
showModules?: boolean
1412
disabled?: boolean
1513
}) => (
1614
<Stack direction="row" spacing={1} sx={{ alignItems: 'center' }}>
17-
<Typography fontWeight={500}>Show all {showModules ? 'modules' : 'courses'} with at least</Typography>
15+
<Typography fontWeight={500}>Show all courses or modules with at least</Typography>
1816
<NumericTextField
1917
disabled={disabled}
2018
initialValue={studentAmountLimit}

0 commit comments

Comments
 (0)