Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

refactoring

ammarahm-ed23c07230af46
diff --git a/apps/mobile/src/components/SelectionWrapper/index.js b/apps/mobile/src/components/SelectionWrapper/index.js
index 8b64303bf..c4d2b858d 100644
--- a/apps/mobile/src/components/SelectionWrapper/index.js
+++ b/apps/mobile/src/components/SelectionWrapper/index.js
@@ -58,7 +58,7 @@ const SelectionWrapper = ({children, item, currentEditingNote, index}) => {
alignItems: 'center',
}}>
<Icon
- size={SIZE.sm}
+ size={SIZE.lg}
color={colors.accent}
name={
selected
diff --git a/apps/mobile/src/provider/reducer.js b/apps/mobile/src/provider/reducer.js
index dab866927..3321677c3 100644
--- a/apps/mobile/src/provider/reducer.js
+++ b/apps/mobile/src/provider/reducer.js
@@ -84,7 +84,6 @@ export const reducer = (state, action) => {
return {
...state,
selectionMode: action.enabled,
- selectedItemsList: [],
};
}
case ACTIONS.SELECTED_ITEMS: {
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index 67f8112ae..ed3c86a1b 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -201,8 +201,6 @@ const Editor = ({navigation, noMenu}) => {
}
saveCounter++;
if (id) {
- console.log(id, 'ID');
-
let lockednote = db.notes.note(id);
if (lockNote && lockednote && lockednote.locked) {
await db.notes.note(id).lock('password');
diff --git a/apps/mobile/src/views/Notebook/index.js b/apps/mobile/src/views/Notebook/index.js
index 1bc50efe3..9117cedfe 100644
--- a/apps/mobile/src/views/Notebook/index.js
+++ b/apps/mobile/src/views/Notebook/index.js
@@ -18,7 +18,7 @@ import {
eOnNewTopicAdded,
eScrollEvent,
} from '../../services/events';
-import {ToastEvent} from '../../utils/utils';
+import {ToastEvent, w} from '../../utils/utils';
export const Notebook = ({navigation}) => {
const [state, dispatch] = useTracked();
diff --git a/apps/mobile/src/views/Notes/index.js b/apps/mobile/src/views/Notes/index.js
index f52233518..fbf4b2a34 100644
--- a/apps/mobile/src/views/Notes/index.js
+++ b/apps/mobile/src/views/Notes/index.js
@@ -8,6 +8,8 @@ import {useTracked} from '../../provider';
import {SIZE, WEIGHT} from '../../common/common';
import {ACTIONS} from '../../provider/actions';
import {ToastEvent} from '../../utils/utils';
+import {eSendEvent} from '../../services/eventManager';
+import {eScrollEvent} from '../../services/events';
export const Notes = ({navigation}) => {
const [state, dispatch] = useTracked();
@@ -34,11 +36,13 @@ export const Notes = ({navigation}) => {
let notesInColors = db.notes.colored(params.color.id);
setNotes([...notesInColors]);
- //setNotes(...);
} else {
let allNotes = db.notebooks
- .notebook(params.notebookID)
- .topics.topic(params.title);
+ .notebook(params.notebookId)
+ .topics.topic(params.title).all;
+
+ console.log(allNotes, 'here getting topics');
+
if (allNotes && allNotes.length > 0) {
setNotes(allNotes);
}