From c32800c92ea59e07d748c5217c60f1dd4fffcd42 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Mon, 13 Jan 2020 17:53:48 +0500 Subject: [PATCH] refactor --- apps/mobile/src/components/ActionSheetComponent/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js index 907cca434..0923eb629 100644 --- a/apps/mobile/src/components/ActionSheetComponent/index.js +++ b/apps/mobile/src/components/ActionSheetComponent/index.js @@ -131,6 +131,8 @@ export const ActionSheetComponent = ({ break; } } + + setWillRefresh(toAdd); setNote({...toAdd}); }; @@ -229,7 +231,6 @@ export const ActionSheetComponent = ({ func: () => { db.pinItem(note.type, note.dateCreated); localRefresh(item.type); - setWillRefresh(true); }, close: false, check: true, @@ -241,7 +242,6 @@ export const ActionSheetComponent = ({ func: () => { db.favoriteItem(note.type, note.dateCreated); localRefresh(item.type); - setWillRefresh(true); }, close: false, check: true, @@ -348,7 +348,6 @@ export const ActionSheetComponent = ({ title: note.title, }); localRefresh(item.type); - setWillRefresh(true); }} style={{ flexDirection: 'row', @@ -401,7 +400,6 @@ export const ActionSheetComponent = ({ tags: oldProps.tags, }); localRefresh(item.type); - setWillRefresh(true); }} style={{ flexDirection: 'row',