Commit aeb834b4 authored by Ibadullina Inabat's avatar Ibadullina Inabat

начала реализовать удаление проекта, продолжу в другой ветке

parent 7e02a2b3
......@@ -2,7 +2,7 @@ import { Card, CardActions, CardContent, Grid, IconButton } from "@mui/material"
import { Link } from "react-router-dom";
import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
import { useDispatch, useSelector } from "react-redux";
import DeleteIcon from "@mui/icons-material/Delete";
const ProjectItem = ({ title, tasks, id }) => {
const user = useSelector(state => state.users.user);
......@@ -26,6 +26,14 @@ const ProjectItem = ({ title, tasks, id }) => {
<IconButton component={Link} to={"/projects/" + id}>
<ArrowForwardIcon />
</IconButton>
<IconButton
onClick={(id) => {
// deleteHandle(userId);
}}
>
{(title !== "Личные дела") ?
<DeleteIcon /> : null}
</IconButton>
</CardActions>
</Card>
</Grid>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment