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
refresh notes page on remove tag
ammarahm-edbd925a42df3c
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.jsindex 09b010e97..78d267791 100644--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js@@ -1,5 +1,5 @@import React, {createRef, useCallback, useEffect, useState} from 'react';-import {Text, TextInput, TouchableOpacity, View} from 'react-native';+import {TextInput, TouchableOpacity, View} from 'react-native';import {ScrollView} from 'react-native-gesture-handler';import {notesnook} from '../../../e2e/test.ids';import {useTracked} from '../../provider';@@ -9,13 +9,11 @@ import {sendNoteEditedEvent,ToastEvent,} from '../../services/EventManager';-import PremiumService from '../../services/PremiumService';+import Navigation from '../../services/Navigation';import {db} from '../../utils/DB';-import {eShowGetPremium} from '../../utils/Events';+import {refreshNotesPage} from '../../utils/Events';import {SIZE, WEIGHT} from '../../utils/SizeUtils';-import {sleep} from '../../utils/TimeUtils';import {Button} from '../Button';-import {PressableButton} from '../PressableButton';import Heading from '../Typography/Heading';import Paragraph from '../Typography/Paragraph';@@ -35,6 +33,7 @@ export const ActionSheetTagsSection = ({item, close}) => {toAdd = db.notes.note(note.id).data;dispatch({type: Actions.NOTES});dispatch({type: Actions.TAGS});+ eSendEvent(refreshNotesPage);setNote({...toAdd});if (prevQuery) {getSuggestions(prevQuery, toAdd);@@ -224,7 +223,7 @@ export const ActionSheetTagsSection = ({item, close}) => {</Paragraph>) : null}- {note.tags.map((item,index) => (+ {note.tags.map((item, index) => (<TagItemkey={item}tag={item}@@ -283,7 +282,6 @@ const TagItem = ({tag, note, localRefresh}) => {.note(note.id).untag(prevNote.tags[prevNote.tags.indexOf(tag)]);sendNoteEditedEvent(note.id, false, true);- console.log('localRefreshHHH EEE');localRefresh(note.type);} catch (e) {sendNoteEditedEvent(note.id, false, true);