diff --git a/src/components/UI/TrackerModal/TrackerModal.jsx b/src/components/UI/TrackerModal/TrackerModal.jsx index 026d1093..71a85d35 100644 --- a/src/components/UI/TrackerModal/TrackerModal.jsx +++ b/src/components/UI/TrackerModal/TrackerModal.jsx @@ -7,7 +7,7 @@ import { getValueModalType, setProject, setProjectBoardFetch, - editProjectName + editProjectName, } from "../../../redux/projectsTrackerSlice"; import "./trackerModal.scss"; @@ -18,7 +18,8 @@ export const TrackerModal = ({ selectedTab, defautlInput, titleProject, - projectId + projectId, + titleColumn, }) => { const dispatch = useDispatch(); const projectBoard = useSelector(getProjectBoard); @@ -30,6 +31,8 @@ export const TrackerModal = ({ const [valueColumn, setValueColumn] = useState(""); const [nameProject, setNameProject] = useState(""); + // const [editTitleColumn, setEditTitleColumn] = useState(titleColumn); + const [valueTiket, setValueTiket] = useState(""); const [descriptionTicket, setDescriptionTicket] = useState(""); @@ -80,11 +83,11 @@ export const TrackerModal = ({ method: "PUT", data: { project_id: projectId, - name: projectName + name: projectName, }, }).then((res) => { - setActive(false) - dispatch(editProjectName({id: projectId, name: projectName})) + setActive(false); + dispatch(editProjectName({ id: projectId, name: projectName })); }); } @@ -232,7 +235,6 @@ export const TrackerModal = ({ )} - {/* TODO: fix state */} {modalType === "editColumn" && (