merge: объединить с origin/react-migration — CustomSelect-селекты и правки багов
This commit is contained in:
commit
df59e1a924
42 files changed
+1201
-305
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { Fragment, useEffect, useRef, useState } from 'react';
|
||||
import { CustomSelect } from '../../shared/ui/CustomSelect.jsx';
|
||||
|
||||
import { getSession } from '../../../admin/js/api.js';
|
||||
import { addDays, toIsoDate } from '../../shared/dates.js';
|
||||
@@ -365,7 +366,7 @@ export function DepartmentWorkspaceTab() {
|
||||
{!isDepartmentRole && (
|
||||
<div className="form-group" id="department-workspace-department-field">
|
||||
<label htmlFor="department-workspace-department">Кафедра</label>
|
||||
<select
|
||||
<CustomSelect
|
||||
id="department-workspace-department"
|
||||
value={departmentId}
|
||||
onChange={event => handleDepartmentChange(event.target.value)}
|
||||
@@ -376,7 +377,7 @@ export function DepartmentWorkspaceTab() {
|
||||
{departmentOptionLabel(department)}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</CustomSelect>
|
||||
</div>
|
||||
)}
|
||||
<div className="form-group">
|
||||
@@ -480,7 +481,7 @@ export function DepartmentWorkspaceTab() {
|
||||
<form id="department-teacher-assign-form" className="stack-form" onSubmit={submitAssign}>
|
||||
<div className="form-group">
|
||||
<label htmlFor="department-teacher-select">Преподаватель</label>
|
||||
<select
|
||||
<CustomSelect
|
||||
id="department-teacher-select"
|
||||
value={assignTeacherId}
|
||||
onChange={event => setAssignTeacherId(event.target.value)}
|
||||
@@ -501,7 +502,7 @@ export function DepartmentWorkspaceTab() {
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
</select>
|
||||
</CustomSelect>
|
||||
</div>
|
||||
<div className="form-group">
|
||||
<label htmlFor="department-teacher-assign-comment">Комментарий</label>
|
||||
|
||||
Reference in new issue
Block a user