Open Sas-Areku opened 1 year ago
I believe this can be done by simply delaying when the handleUndo function is called.
Essentially:
This would be within the undo() and handleCancelUndo() functions within undo.tsx
This issue is blocked as the UndoItem will re-render when the majority of state changes are made on the Edit component.
Ideally, the UndoItem would never re-render throughout it's displayed time. It would render, stay for 10 seconds unless otherwise acted upon, then unmount after 10 seconds.
Undo modals are currently being rendered based on the deletedApps array. Instead, there should be another array controlled by the undo modals, so that there can be a delay between when a deletedApp is removed, and when the undo modal is no longer rendered.
This will ensure constant CSS transitions