mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
refactor
This commit is contained in:
@@ -131,6 +131,8 @@ export const ActionSheetComponent = ({
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setWillRefresh(toAdd);
|
||||||
setNote({...toAdd});
|
setNote({...toAdd});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -229,7 +231,6 @@ export const ActionSheetComponent = ({
|
|||||||
func: () => {
|
func: () => {
|
||||||
db.pinItem(note.type, note.dateCreated);
|
db.pinItem(note.type, note.dateCreated);
|
||||||
localRefresh(item.type);
|
localRefresh(item.type);
|
||||||
setWillRefresh(true);
|
|
||||||
},
|
},
|
||||||
close: false,
|
close: false,
|
||||||
check: true,
|
check: true,
|
||||||
@@ -241,7 +242,6 @@ export const ActionSheetComponent = ({
|
|||||||
func: () => {
|
func: () => {
|
||||||
db.favoriteItem(note.type, note.dateCreated);
|
db.favoriteItem(note.type, note.dateCreated);
|
||||||
localRefresh(item.type);
|
localRefresh(item.type);
|
||||||
setWillRefresh(true);
|
|
||||||
},
|
},
|
||||||
close: false,
|
close: false,
|
||||||
check: true,
|
check: true,
|
||||||
@@ -348,7 +348,6 @@ export const ActionSheetComponent = ({
|
|||||||
title: note.title,
|
title: note.title,
|
||||||
});
|
});
|
||||||
localRefresh(item.type);
|
localRefresh(item.type);
|
||||||
setWillRefresh(true);
|
|
||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
@@ -401,7 +400,6 @@ export const ActionSheetComponent = ({
|
|||||||
tags: oldProps.tags,
|
tags: oldProps.tags,
|
||||||
});
|
});
|
||||||
localRefresh(item.type);
|
localRefresh(item.type);
|
||||||
setWillRefresh(true);
|
|
||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
|
|||||||
Reference in New Issue
Block a user