Skip to content

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

update

ammarahm-ed0bd19e7bcea6
diff --git a/apps/mobile/src/components/NotebookItem/index.js b/apps/mobile/src/components/NotebookItem/index.js
index 74564acf3..b6df14a88 100644
--- a/apps/mobile/src/components/NotebookItem/index.js
+++ b/apps/mobile/src/components/NotebookItem/index.js
@@ -34,16 +34,25 @@ export const NotebookItem = ({
onLongPress();
return;
}
- isTopic
- ? NavigationService.navigate('Notes', {
- ...item,
- })
- : NavigationService.navigate('Notebook', {
- notebook: item,
- title: hideMore ? 'Select Topic' : item.title,
- isMove: isMove,
- hideMore: hideMore,
- });
+ if (isTopic) {
+ NavigationService.navigate('Notes', {
+ ...item,
+ });
+ } else {
+ hideMore
+ ? navigation.navigate('Notebook', {
+ notebook: item,
+ title: hideMore ? 'Select Topic' : item.title,
+ isMove: isMove,
+ hideMore: hideMore,
+ })
+ : NavigationService.navigate('Notebook', {
+ notebook: item,
+ title: hideMore ? 'Select Topic' : item.title,
+ isMove: isMove,
+ hideMore: hideMore,
+ });
+ }
};
return (
diff --git a/apps/mobile/src/provider/reducer.js b/apps/mobile/src/provider/reducer.js
index 7692fd466..8038834dc 100644
--- a/apps/mobile/src/provider/reducer.js
+++ b/apps/mobile/src/provider/reducer.js
@@ -111,7 +111,7 @@ export const reducer = (state, action) => {
return {
...state,
selectedItemsList: selectedItems,
- selectionMode: selectedItems.length > 0 ? true : false,
+ selectionMode: selectedItems.length > 0 ? state.selectionMode : false,
};
}
case ACTIONS.CLEAR_SELECTION: {