Skip to content

Commit

Permalink
Issue feat:Await 2 seconds for delete items
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshataKatwal16 committed Nov 22, 2024
1 parent b0cbe8d commit 36f77df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DeleteConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const DeleteConfirmation: React.FC<DeleteConfirmationProps> = ({
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);
Expand Down Expand Up @@ -70,7 +70,7 @@ const DeleteConfirmation: React.FC<DeleteConfirmationProps> = ({
>
<DialogTitle sx={{ m: 0,}} id="delete-confirmation-title">
<Box sx={{padding:'10px'}}>
<Typography sx={{ fontWeight: "400", fontSize: "16px" }}>Are you sure you want to delete this item?</Typography>
<Typography sx={{ fontWeight: "400", fontSize: "16px" }}>Are you sure you want to delete this Resource?</Typography>
</Box>
{/* <IconButton
aria-label="close"
Expand Down

0 comments on commit 36f77df

Please sign in to comment.