A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix multi-select not working correctly
ammarahm-ede5e0e274dfe8
diff --git a/apps/mobile/src/components/NoteItem/wrapper.js b/apps/mobile/src/components/NoteItem/wrapper.jsindex 4a0831d9d..eab48c500 100644--- a/apps/mobile/src/components/NoteItem/wrapper.js+++ b/apps/mobile/src/components/NoteItem/wrapper.js@@ -20,7 +20,7 @@ export const NoteWrapper = React.memo(({item, index}) => {let _note = db.notes.note(item.id).data;if (history.selectedItemsList.length > 0 && history.selectionMode) {- dispatch({type: Actions.SELECTED_ITEMS, item: _note});+ setSelectedItem(_note);return;} else {history.selectedItemsList = [];diff --git a/apps/mobile/src/components/NotebookItem/wrapper.js b/apps/mobile/src/components/NotebookItem/wrapper.jsindex 9266e935b..3ef9bd176 100644--- a/apps/mobile/src/components/NotebookItem/wrapper.js+++ b/apps/mobile/src/components/NotebookItem/wrapper.js@@ -12,10 +12,7 @@ export const NotebookWrapper = React.memo(({item, index}) => {const onPress = () => {if (history.selectedItemsList.length > 0 && history.selectionMode) {- dispatch({- type: Actions.SELECTED_ITEMS,- item: item,- });+ setSelectedItem(item);return;} else {history.selectedItemsList = [];diff --git a/apps/mobile/src/components/SelectionWrapper/actionstrip.js b/apps/mobile/src/components/SelectionWrapper/actionstrip.jsindex 74ad33bf4..c7a999bb0 100644--- a/apps/mobile/src/components/SelectionWrapper/actionstrip.js+++ b/apps/mobile/src/components/SelectionWrapper/actionstrip.js@@ -1,18 +1,17 @@-import React, {useEffect, useState} from 'react';-import {Clipboard, View} from 'react-native';-import Animated, {useValue} from 'react-native-reanimated';-import {useTracked} from '../../provider';-import {Actions} from '../../provider/Actions';+import React, { useEffect, useState } from 'react';+import { Clipboard, View } from 'react-native';+import Animated, { useValue } from 'react-native-reanimated';+import { useTracked } from '../../provider';import { useMenuStore, useNotebookStore, useSelectionStore } from '../../provider/stores';-import {openVault, ToastEvent} from '../../services/EventManager';+import { openVault, ToastEvent } from '../../services/EventManager';import Navigation from '../../services/Navigation';-import {dWidth, getElevation, toTXT} from '../../utils';-import {db} from '../../utils/DB';-import {deleteItems} from '../../utils/functions';-import {ActionIcon} from '../ActionIcon';-import {Button} from '../Button';-import {simpleDialogEvent} from '../DialogManager/recievers';-import {TEMPLATE_PERMANANT_DELETE} from '../DialogManager/Templates';+import { dWidth, getElevation, toTXT } from '../../utils';+import { db } from '../../utils/DB';+import { deleteItems } from '../../utils/functions';+import { ActionIcon } from '../ActionIcon';+import { Button } from '../Button';+import { simpleDialogEvent } from '../DialogManager/recievers';+import { TEMPLATE_PERMANANT_DELETE } from '../DialogManager/Templates';export const ActionStrip = ({note, setActionStrip}) => {const [state, dispatch] = useTracked();@@ -238,7 +237,7 @@ export const ActionStrip = ({note, setActionStrip}) => {if (!selectionMode) {setSelectionMode(true);}- setSelectedItem(item);+ setSelectedItem(note);setActionStrip(false);}}style={{