update project

This commit is contained in:
hamid zarghami
2026-07-11 11:01:01 +03:30
parent 47691a649f
commit 1618b5fb57
7 changed files with 306 additions and 7 deletions
@@ -1,5 +1,5 @@
import { CSSProperties, FC } from "react";
import { Link } from "react-router-dom";
import { Link, useNavigate } from "react-router-dom";
import { Pages } from "../../../../config/Pages";
import type { ProjectItem } from "../types/ProjectTypes";
import ProjectCardMenu from "./ProjectCardMenu";
@@ -34,8 +34,10 @@ const getCardBackgroundStyle = (project: ProjectItem): CSSProperties => {
};
const ProjectCard: FC<Props> = ({ project, onDelete }) => {
const navigate = useNavigate();
const handleEdit = () => {
// TODO: navigate to edit page when available
navigate(`${Pages.taskmanager.updateProject}${project.id}`);
};
return (