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

@@ -35,7 +35,6 @@ export class Dialog extends Component {
history.selectedItemsList.forEach(async i => { history.selectedItemsList.forEach(async i => {
if (i.type === 'note') { if (i.type === 'note') {
console.log(i.id);
await db.notes.delete(i.id); await db.notes.delete(i.id);
ToastEvent.show('Notes moved to trash', 'error'); ToastEvent.show('Notes moved to trash', 'error');
updateEvent({type: i.type}); updateEvent({type: i.type});
@@ -134,7 +133,6 @@ export class Dialog extends Component {
}; };
show = () => { show = () => {
console.log(history.selectedItemsList.length, 'length');
this.setState({ this.setState({
visible: true, visible: true,
selectedItemsLength: history.selectedItemsList.length, selectedItemsLength: history.selectedItemsList.length,

View File

@@ -408,7 +408,7 @@ export const Menu = ({
paddingHorizontal: 2, paddingHorizontal: 2,
textAlign: 'center', textAlign: 'center',
}}> }}>
{item.count > 99 ? '99+' : item.count} {item.noteIds.length > 99 ? '99+' : item.noteIds.length}
</Text> </Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>

View File

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

View File

@@ -239,7 +239,6 @@ export default class SideMenu extends React.Component {
} }
handleMoveShouldSetPanResponder = (e, gestureState) => { handleMoveShouldSetPanResponder = (e, gestureState) => {
console.log(gestures.enabled);
if (gestures.enabled) { if (gestures.enabled) {
const x = Math.round(Math.abs(gestureState.dx)); const x = Math.round(Math.abs(gestureState.dx));
const y = Math.round(Math.abs(gestureState.dy)); const y = Math.round(Math.abs(gestureState.dy));

View File

@@ -116,8 +116,6 @@ export const reducer = (state, action) => {
}; };
} }
case ACTIONS.SELECT_ALL: { case ACTIONS.SELECT_ALL: {
console.log(action.selected);
return { return {
...state, ...state,
selectedItemsList: action.selected, selectedItemsList: action.selected,

View File

@@ -202,7 +202,7 @@ const Editor = ({noMenu}) => {
const saveNote = async (lockNote = true) => { const saveNote = async (lockNote = true) => {
if (!canSave) return; if (!canSave) return;
console.log('reaching here and making shit ton.');
if (!title && !content) return; if (!title && !content) return;
if ( if (
title && title &&