fix
This commit is contained in:
parent
776c53cbbd
commit
e1ac3bc70e
@ -28,11 +28,10 @@ export const TrackerModal = ({
|
|||||||
|
|
||||||
const [emailWorker, setEmailWorker] = useState("");
|
const [emailWorker, setEmailWorker] = useState("");
|
||||||
const [projectName, setProjectName] = useState(defautlInput);
|
const [projectName, setProjectName] = useState(defautlInput);
|
||||||
|
const [editTitleColumn, setEditTitleColumn] = useState(titleColumn);
|
||||||
const [valueColumn, setValueColumn] = useState("");
|
const [valueColumn, setValueColumn] = useState("");
|
||||||
const [nameProject, setNameProject] = useState("");
|
const [nameProject, setNameProject] = useState("");
|
||||||
|
|
||||||
// const [editTitleColumn, setEditTitleColumn] = useState(titleColumn);
|
|
||||||
|
|
||||||
const [valueTiket, setValueTiket] = useState("");
|
const [valueTiket, setValueTiket] = useState("");
|
||||||
const [descriptionTicket, setDescriptionTicket] = useState("");
|
const [descriptionTicket, setDescriptionTicket] = useState("");
|
||||||
|
|
||||||
@ -242,7 +241,7 @@ export const TrackerModal = ({
|
|||||||
<div className="input-container">
|
<div className="input-container">
|
||||||
<input
|
<input
|
||||||
className="name-project"
|
className="name-project"
|
||||||
value={titleColumn}
|
value={editTitleColumn}
|
||||||
onChange={(e) => setEditTitleColumn(e.target.value)}
|
onChange={(e) => setEditTitleColumn(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,7 +42,6 @@ export const ProjectTracker = () => {
|
|||||||
const [modalAdd, setModalAdd] = useState(false);
|
const [modalAdd, setModalAdd] = useState(false);
|
||||||
const [modalActiveTicket, setModalActiveTicket] = useState(false);
|
const [modalActiveTicket, setModalActiveTicket] = useState(false);
|
||||||
const [selectedTicket, setSelectedTicket] = useState({});
|
const [selectedTicket, setSelectedTicket] = useState({});
|
||||||
const [titleEditColumn, setTitleEditColumn] = useState("");
|
|
||||||
|
|
||||||
const startWrapperIndexTest = useRef({});
|
const startWrapperIndexTest = useRef({});
|
||||||
const projectBoard = useSelector(getProjectBoard);
|
const projectBoard = useSelector(getProjectBoard);
|
||||||
@ -199,13 +198,6 @@ export const ProjectTracker = () => {
|
|||||||
<div className="tasks__head__wrapper">
|
<div className="tasks__head__wrapper">
|
||||||
<h4>Проект : {projectBoard.name}</h4>
|
<h4>Проект : {projectBoard.name}</h4>
|
||||||
|
|
||||||
<TrackerModal
|
|
||||||
active={modalAdd}
|
|
||||||
setActive={setModalAdd}
|
|
||||||
selectedTab={selectedTab}
|
|
||||||
titleColumn={titleEditColumn}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div className="tasks__head__add">
|
<div className="tasks__head__add">
|
||||||
<span
|
<span
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@ -271,6 +263,12 @@ export const ProjectTracker = () => {
|
|||||||
wrapperHover[column.id] ? "tasks__board__hover" : ""
|
wrapperHover[column.id] ? "tasks__board__hover" : ""
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
|
<TrackerModal
|
||||||
|
active={modalAdd}
|
||||||
|
setActive={setModalAdd}
|
||||||
|
selectedTab={selectedTab}
|
||||||
|
titleColumn={column.title}
|
||||||
|
/>
|
||||||
<div className="board__head">
|
<div className="board__head">
|
||||||
{/*<span className={wrapperIndex === 3 ? "done" : ""}>*/}
|
{/*<span className={wrapperIndex === 3 ? "done" : ""}>*/}
|
||||||
<span>{column.title}</span>
|
<span>{column.title}</span>
|
||||||
@ -304,7 +302,6 @@ export const ProjectTracker = () => {
|
|||||||
[column.id]: false,
|
[column.id]: false,
|
||||||
}));
|
}));
|
||||||
dispatch(modalToggle("editColumn"));
|
dispatch(modalToggle("editColumn"));
|
||||||
setTitleEditColumn(column.title);
|
|
||||||
setModalAdd(true);
|
setModalAdd(true);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user