Skip to content

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

send title initially before navigating

ammarahm-ed4055c3df34c8
diff --git a/apps/mobile/src/components/Menu/ColorSection.js b/apps/mobile/src/components/Menu/ColorSection.js
index 739624c34..5887dc541 100644
--- a/apps/mobile/src/components/Menu/ColorSection.js
+++ b/apps/mobile/src/components/Menu/ColorSection.js
@@ -30,14 +30,19 @@ export const ColorSection = ({noTextMode}) => {
state: false,
});
+ dispatch({
+ type: Actions.CURRENT_SCREEN,
+ screen: item.title,
+ });
+
dispatch({
type: Actions.HEADER_TEXT_STATE,
state: {
- heading: item.title,
+ heading: item.title.slice(0, 1).toUpperCase() + item.title.slice(1),
},
});
- NavigationService.navigate('Notes', params);
+ NavigationService.navigate('NotesPage', params);
eSendEvent(refreshNotesPage, params);
NavigationService.closeDrawer();
}