update project
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user