fix colors api link

This commit is contained in:
ammarahm-ed
2020-03-22 13:25:41 +05:00
parent 17060b813f
commit 9b7ed7cca7
6 changed files with 3 additions and 12 deletions

View File

@@ -16,10 +16,7 @@ export const SelectionHeader = () => {
const {colors, selectionMode, selectedItemsList, currentScreen} = state;
const [selectAll, setSelectAll] = useState(false);
useEffect(() => {
console.log(selection.data, selection.type);
console.log(currentScreen);
}, [currentScreen]);
useEffect(() => {}, [currentScreen]);
return (
<Animatable.View
@@ -177,7 +174,6 @@ export const SelectionHeader = () => {
await db.trash.restore(...noteIds);
console.log(noteIds);
dispatch({type: ACTIONS.TRASH});
dispatch({type: ACTIONS.SELECTION_MODE, enabled: false});
dispatch({type: ACTIONS.CLEAR_SELECTION});