Skip to content

Commit

Permalink
Домашние задания -> Задания
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSec256 committed Dec 8, 2024
1 parent dd43ef8 commit a17c343
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion hwproj.front/src/components/Courses/Course.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const Course: React.FC = () => {
if (value === 2 && !isExpert) navigate(`/courses/${courseId}/applications`)
}}
>
{!isExpert && <Tab label="Домашние задания"/>}
{!isExpert && <Tab label="Задания"/>}
{showStatsTab && <Tab label={
<Stack direction="row" spacing={1}>
<div>Решения</div>
Expand Down
6 changes: 3 additions & 3 deletions hwproj.front/src/components/Courses/CourseFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ const CourseFilter: FC<ICourseFilterProps> = (props) => {
<TextField
{...params}
variant="outlined"
label={state.selectedHomeworks.length === 0 ? "" : "Домашние работы"}
placeholder={state.selectedHomeworks.length === 0 ? "Все домашние работы" : ""}
label={state.selectedHomeworks.length === 0 ? "" : "Задания"}
placeholder={state.selectedHomeworks.length === 0 ? "Все задания" : ""}
/>
)}
noOptionsText={'На курсе больше нет домашних работ'}
noOptionsText={'На курсе больше нет заданий'}
value={state.selectedHomeworks}
onChange={(_, values) => {
setState((prevState) => ({
Expand Down
2 changes: 1 addition & 1 deletion hwproj.front/src/components/Homeworks/AddHomework.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const AddHomework: React.FC<IAddHomeworkProps> = (props) => {
type="submit"
disabled={addHomeworkState.hasErrors || addHomeworkState.tasks.some(t => t.hasErrors)}
>
Добавить домашнее задание
Добавить задание
</Button>
&nbsp;
<Button
Expand Down
6 changes: 3 additions & 3 deletions hwproj.front/src/components/Homeworks/EditHomework.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const EditHomework: FC = () => {
if (!editHomework.courseMentorIds.includes(ApiSingleton.authService.getUserId())) {
return (
<Typography variant="h6" gutterBottom>
Только преподаватель может редактировать домашнюю работу
Только преподаватель может редактировать задание
</Typography>
);
}
Expand All @@ -151,7 +151,7 @@ const EditHomework: FC = () => {
</div>
<div>
<Typography style={{fontSize: '22px'}}>
Редактировать домашнее задание
Редактировать задание
</Typography>
</div>
</div>
Expand Down Expand Up @@ -223,7 +223,7 @@ const EditHomework: FC = () => {
variant="contained"
type="submit"
disabled={isSomeTaskSoonerThanHomework || editHomework.hasErrors}>
Редактировать домашнее задание
Редактировать задание
</Button>
</Grid>
</form>
Expand Down
4 changes: 2 additions & 2 deletions hwproj.front/src/components/Homeworks/Homework.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ const Homework: FC<IHomeworkProps> = (props) => {
onCancel={closeDialogDeleteHomework}
onSubmit={deleteHomework}
isOpen={isOpenDialogDeleteHomework}
dialogTitle={'Удаление домашнего задания'}
dialogContentText={`Вы точно хотите удалить домашнее задание "${props.homework.title}"?`}
dialogTitle={'Удаление задания'}
dialogContentText={`Вы точно хотите удалить задание "${props.homework.title}"?`}
confirmationWord={''}
confirmationText={''}
/>
Expand Down
2 changes: 1 addition & 1 deletion hwproj.front/src/components/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ const Notifications: FC<IProfileProps> = (props) => {
value={CategoryEnum.NUMBER_3}
inputProps={{'aria-label': 'controlled'}}
/>
} label="Домашние задания"
} label="Задания"
/>
{allNotSeen.length != 0 &&
<Button fullWidth variant="contained" onClick={markAllNotificationsAsSeen}>Прочитать
Expand Down
4 changes: 2 additions & 2 deletions hwproj.front/src/components/Solutions/UnratedSolutions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ const UnratedSolutions: FC<IUnratedSolutionsProps> = (props) => {
{renderSelect("Курс", "coursesFilter", filtersState.coursesFilter, filtersState.courses)}
</Grid>
<Grid item>
{renderSelect("Домашняя работа", "homeworksFilter", filtersState.homeworksFilter, filtersState.homeworks)}
{renderSelect("Задание", "homeworksFilter", filtersState.homeworksFilter, filtersState.homeworks)}
</Grid>
<Grid item>
{renderSelect("Задание", "tasksFilter", filtersState.tasksFilter, filtersState.tasks)}
{renderSelect("Задача", "tasksFilter", filtersState.tasksFilter, filtersState.tasks)}
</Grid>
<Grid item>
{renderSelect("Студент", "studentsFilter", filtersState.studentsFilter, filtersState.students)}
Expand Down

0 comments on commit a17c343

Please sign in to comment.