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
minor fixes
ammarahm-ed10956cddad90
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex f84cb4576..b167e4a5f 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -148,6 +148,7 @@ export const ActionSheetComponent = ({switch (type) {case 'note': {toAdd = db.getNote(note.dateCreated);+break;}case 'notebook': {@@ -162,7 +163,10 @@ export const ActionSheetComponent = ({if (!nodispatch) {dispatch({type: type});+ dispatch({type: ACTIONS.PINNED});+ dispatch({type: ACTIONS.FAVORITES});}+ console.log(toAdd);setNote({...toAdd});};@@ -265,9 +269,9 @@ export const ActionSheetComponent = ({{name: 'Pin',icon: 'tag',- func: () => {+ func: async () => {if (!note.dateCreated) return;- db.pinItem(note.type, note.dateCreated);+ await db.pinItem(note.type, note.dateCreated);localRefresh(item.type);dispatch({type: ACTIONS.PINNED});},@@ -278,10 +282,11 @@ export const ActionSheetComponent = ({{name: 'Favorite',icon: 'star',- func: () => {+ func: async () => {if (!note.dateCreated) return;- db.favoriteItem(note.type, note.dateCreated);+ await db.favoriteItem(note.type, note.dateCreated);localRefresh(item.type);+ dispatch({type: ACTIONS.FAVORITES});},close: false,check: true,diff --git a/apps/mobile/src/components/SelectionHeader/index.js b/apps/mobile/src/components/SelectionHeader/index.jsindex 1435db4b8..af5d79d3b 100644--- a/apps/mobile/src/components/SelectionHeader/index.js+++ b/apps/mobile/src/components/SelectionHeader/index.js@@ -28,7 +28,7 @@ export const SelectionHeader = ({navigation}) => {return (<Animatable.Viewtransition={['translateY']}- duration={700}+ duration={300}useNativeDriver={true}style={{width: '100%',diff --git a/apps/mobile/src/provider/reducer.js b/apps/mobile/src/provider/reducer.jsindex 5bc160502..599d3d341 100644--- a/apps/mobile/src/provider/reducer.js+++ b/apps/mobile/src/provider/reducer.js@@ -8,7 +8,7 @@ export const reducer = (state, action) => {let notes = db.groupNotes();return {...state,- notes: notes,+ notes: [...notes],loading: false,};case ACTIONS.THEME: {diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.jsindex 407543eb5..a075fe433 100755--- a/apps/mobile/src/views/Editor/index.js+++ b/apps/mobile/src/views/Editor/index.js@@ -526,6 +526,7 @@ const Editor = ({navigation, noMenu}) => {justifyContent: 'center',alignItems: 'center',zIndex: 1,+ backgroundColor: colors.bg,opacity: loading ? 1 : 0,position: 'absolute',}}>diff --git a/apps/mobile/src/views/Trash/index.js b/apps/mobile/src/views/Trash/index.jsindex c52bfa013..ab4d3e697 100644--- a/apps/mobile/src/views/Trash/index.js+++ b/apps/mobile/src/views/Trash/index.js@@ -12,6 +12,7 @@ import NoteItem from '../../components/NoteItem';import {useTracked} from '../../provider';import {ACTIONS} from '../../provider/actions';import {w} from '../../utils/utils';+import SelectionWrapper from '../../components/SelectionWrapper';export const Trash = ({navigation}) => {const [state, dispatch] = useTracked();@@ -24,7 +25,7 @@ export const Trash = ({navigation}) => {}, []);const _renderItem = ({item, index}) => (- <SelectionWrapper item={item}>+ <SelectionWrapper colors={colors} item={item}>{item.type === 'note' ? (<NoteItemcustomStyle={{@@ -41,6 +42,7 @@ export const Trash = ({navigation}) => {item: item,});}}+ colors={colors}item={item}index={index}isTrash={true}