From 096fd04a226650ea95c45743227a3a626bf5d336 Mon Sep 17 00:00:00 2001 From: Eric Lewis Date: Fri, 29 Mar 2024 13:24:53 -0400 Subject: [PATCH] fix: project card settings links --- .../projects/ProjectCard/ProjectCard.tsx | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx b/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx index 84a34b4f..fe9a693c 100644 --- a/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx +++ b/packages/frontend/src/components/projects/ProjectCard/ProjectCard.tsx @@ -53,6 +53,16 @@ export const ProjectCard = ({ navigate(`projects/${project.id}`); }, [project.id, navigate]); + const navigateToSettingsOnClick = useCallback( + ( + e: React.MouseEvent | React.MouseEvent, + ) => { + e.stopPropagation(); + navigate(`projects/${project.id}/settings`); + }, + [project.id, navigate], + ); + return (
- Project settings - Delete project + + Project settings + + + Delete project +