mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
fix colors api link
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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});
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -116,8 +116,6 @@ export const reducer = (state, action) => {
|
||||
};
|
||||
}
|
||||
case ACTIONS.SELECT_ALL: {
|
||||
console.log(action.selected);
|
||||
|
||||
return {
|
||||
...state,
|
||||
selectedItemsList: action.selected,
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user