diff --git a/src/components/TrackerSelectColumn/TrackerSelectColumn.jsx b/src/components/TrackerSelectColumn/TrackerSelectColumn.jsx index 08452e86..3fd9fcab 100644 --- a/src/components/TrackerSelectColumn/TrackerSelectColumn.jsx +++ b/src/components/TrackerSelectColumn/TrackerSelectColumn.jsx @@ -5,32 +5,41 @@ import { moveProjectTask } from "@redux/projectsTrackerSlice"; import arrowDown from "assets/icons/arrows/selectArrow.png"; -import './trackerSelectColumn.scss' +import "./trackerSelectColumn.scss"; -export const TrackerSelectColumn = ({columns, task, currentColumn}) => { - const dispatch = useDispatch(); - const [openSelect, setOpenSelect] = useState(false) - return( -
Выберите колонку
- - {openSelect && -{ - dispatch(moveProjectTask({ - startWrapperIndex: {index: currentColumn, task}, - columnId: column.id - })) - } - }>{column.title}
+export const TrackerSelectColumn = ({ columns, task, currentColumn }) => { + const dispatch = useDispatch(); + const [openSelect, setOpenSelect] = useState(false); + return ( +Выберите колонку
+ + {openSelect && ( +{ + dispatch( + moveProjectTask({ + startWrapperIndex: { index: currentColumn, task }, + columnId: column.id, }) - } -