Skip to content

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

refactor

ammarahm-ed3ad6ac3cb190
diff --git a/apps/mobile/src/components/Menu/ColorSection.js b/apps/mobile/src/components/Menu/ColorSection.js
index 6dc22eb9d..4fe49bf87 100644
--- a/apps/mobile/src/components/Menu/ColorSection.js
+++ b/apps/mobile/src/components/Menu/ColorSection.js
@@ -55,10 +55,10 @@ const ColorItem = ({item, index}) => {
const onPress = (item) => {
let params = {
+ ...item,
type: 'color',
- title: item.title,
- color: item,
menu: true,
+ get:'colored'
};
Navigation.navigate('NotesPage', params, {
heading: item.title.slice(0, 1).toUpperCase() + item.title.slice(1),
diff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.js
index 026440754..31074e1db 100644
--- a/apps/mobile/src/components/Menu/TagsSection.js
+++ b/apps/mobile/src/components/Menu/TagsSection.js
@@ -46,10 +46,10 @@ export const TagsSection = () => {
eSendEvent(eOnNewTopicAdded, params);
} else if (item.type === 'tag') {
params = params = {
- title: item.title,
- tag: item,
+ ...item,
type: 'tag',
menu: true,
+ get:'tagged'
};
Navigation.navigate('NotesPage', params, {
heading: '#' + item.title,
@@ -58,7 +58,7 @@ export const TagsSection = () => {
});
eSendEvent(refreshNotesPage, params);
} else {
- params = {...item, menu: true};
+ params = {...item, menu: true,get:'topics'};
Navigation.navigate('NotesPage', params, {
heading: item.title,
id: item.id,
diff --git a/apps/mobile/src/components/TagItem/index.js b/apps/mobile/src/components/TagItem/index.js
index c34f00a27..42c9d2d61 100644
--- a/apps/mobile/src/components/TagItem/index.js
+++ b/apps/mobile/src/components/TagItem/index.js
@@ -18,9 +18,9 @@ const TagItem = ({item, index}) => {
Navigation.navigate(
'NotesPage',
{
+ ...item,
type: 'tag',
- title: item.title,
- tag: item,
+ get:'tagged'
},
{
heading: '#' + item.title,