do not all general topic to be selected

This commit is contained in:
ammarahm-ed
2020-12-16 12:07:58 +05:00
parent 1ed589816b
commit 02e015ff4d

View File

@@ -21,6 +21,7 @@ export const NotebookItemWrapper = ({
}, [selectionMode]);
const onLongPress = () => {
if (item.title === 'General') return;
if (!selectionMode) {
dispatch({
type: Actions.SELECTION_MODE,
@@ -36,6 +37,7 @@ export const NotebookItemWrapper = ({
const onPress = () => {
if (selectionMode) {
console.log(item.title);
onLongPress();
return;
}
@@ -58,7 +60,11 @@ export const NotebookItemWrapper = ({
<SelectionWrapper
onLongPress={onLongPress}
pinned={pinned}
testID={isTopic? notesnook.ids.topic.get(index) : notesnook.ids.notebook.get(index)}
testID={
isTopic
? notesnook.ids.topic.get(index)
: notesnook.ids.notebook.get(index)
}
index={index}
onPress={onPress}
item={item}>