add toast messag queuing

This commit is contained in:
ammarahm-ed
2020-09-10 13:16:30 +05:00
parent 7f7cf5608a
commit 03744562d9
4 changed files with 124 additions and 48 deletions

View File

@@ -272,7 +272,7 @@ export const ActionSheetComponent = ({
name: 'Restore',
icon: 'delete-restore',
func: async () => {
await db.trash.restore(note.id);
console.log(await db.trash.restore(note.id),"RESULT");
dispatch({type: ACTIONS.TRASH});
localRefresh(note.type);
ToastEvent.show(