Skip to content

Commit f271b88

Browse files
authored
Улучшить окно редактирования фильтра курса (#601)
* изменён текст "работы" на "задания" * удалено избыточное (и некорректное) предложение выбрать задания курса
1 parent b56891c commit f271b88

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

hwproj.front/src/components/Courses/CourseFilter.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ const CourseFilter: FC<ICourseFilterProps> = (props) => {
121121
<TextField
122122
{...params}
123123
variant="outlined"
124-
label={state.selectedHomeworks.length === 0 ? "" : "Работы"}
125-
placeholder={state.selectedHomeworks.length === 0 ? "Все работы" : ""}
124+
label={state.selectedHomeworks.length === 0 ? "" : "Задания"}
125+
placeholder={state.selectedHomeworks.length === 0 ? "Все задания" : ""}
126126
/>
127127
)}
128-
noOptionsText={'На курсе больше нет работ'}
128+
noOptionsText={'На курсе больше нет заданий'}
129129
value={state.selectedHomeworks}
130130
onChange={(_, values) => {
131131
setState((prevState) => ({

hwproj.front/src/components/Experts/InviteModal.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,7 @@ const InviteExpertModal: FC<IInviteExpertProps> = (props) => {
200200
</Grid>
201201
</Grid>
202202
{state.selectedCourseId !== -1 && (
203-
<Grid container style={{marginTop: '15px'}} direction="column">
204-
{!isWorkspaceLoading &&
205-
<Grid item>
206-
<Typography>
207-
Выберите задачи:
208-
</Typography>
209-
</Grid>}
203+
<Grid container direction="column">
210204
<Grid item>
211205
<CourseFilter key={state.selectedCourseId}
212206
courseId={state.selectedCourseId}

0 commit comments

Comments
 (0)