From 36f77df765f98c228fdaa5bb92e402b919312bfe Mon Sep 17 00:00:00 2001 From: Akshata Katwal Date: Fri, 22 Nov 2024 11:49:57 +0530 Subject: [PATCH] Issue feat:Await 2 seconds for delete items --- src/components/DeleteConfirmation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DeleteConfirmation.tsx b/src/components/DeleteConfirmation.tsx index 1e15b68..4493808 100644 --- a/src/components/DeleteConfirmation.tsx +++ b/src/components/DeleteConfirmation.tsx @@ -41,7 +41,7 @@ const DeleteConfirmation: React.FC = ({ try { await deleteContent(rowData?.identifier, rowData?.mimeType); console.log(`Deleted item with identifier - ${rowData?.identifier}`); - await delay(1000); + await delay(2000); // Update the fetchContentAPI state after the delay setFetchContentAPI(!fetchContentAPI); @@ -70,7 +70,7 @@ const DeleteConfirmation: React.FC = ({ > - Are you sure you want to delete this item? + Are you sure you want to delete this Resource? {/*