From 55dc129319338fe4dbb7da703eb7d1f821341141 Mon Sep 17 00:00:00 2001 From: Brent Salisbury Date: Fri, 13 Dec 2024 23:08:04 -0500 Subject: [PATCH] no-op edit submission instead of calling delete submission - Pop a not implemented modal instead of calling delete submission until it is implemented. Signed-off-by: Brent Salisbury --- src/components/Dashboard/Native/dashboard.tsx | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/components/Dashboard/Native/dashboard.tsx b/src/components/Dashboard/Native/dashboard.tsx index 149c3b21..7d041261 100644 --- a/src/components/Dashboard/Native/dashboard.tsx +++ b/src/components/Dashboard/Native/dashboard.tsx @@ -41,6 +41,7 @@ const DashboardNative: React.FunctionComponent = () => { const [isPublishModalOpen, setIsPublishModalOpen] = React.useState(false); const [selectedBranch, setSelectedBranch] = React.useState(null); const [isPublishing, setIsPublishing] = React.useState(false); + const [isEditModalOpen, setIsEditModalOpen] = React.useState(false); const getUniqueId = () => new Date().getTime(); @@ -188,9 +189,14 @@ const DashboardNative: React.FunctionComponent = () => { } } }; - const handleEditContribution = async (branchName: string) => { + + const handleEditContribution = (branchName: string) => { setSelectedBranch(branchName); - setIsDeleteModalOpen(true); + setIsEditModalOpen(true); + }; + + const closeEditModal = () => { + setIsEditModalOpen(false); // Close the modal when needed }; const handlePublishContribution = async (branchName: string) => { @@ -375,6 +381,19 @@ const DashboardNative: React.FunctionComponent = () => {

No differences found.

)} + + Close + + ]} + > +

Not yet implemented for native mode.

+