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

View File

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

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});

View File

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

View File

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

View File

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