Skip to content

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

minor fixes

ammarahm-ede43756ddff18
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index 007902cfc..6c0adaa11 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -332,9 +332,9 @@ export const ActionSheetComponent = ({
style={{
color: colors.accent,
}}>
- {tag.slice(0, 1)}
+ #
</Text>
- {tag.slice(1)}
+ {tag}
</Text>
</TouchableOpacity>
);
diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.js
index d947eb6e5..59cc5a17a 100644
--- a/apps/mobile/src/components/Menu/index.js
+++ b/apps/mobile/src/components/Menu/index.js
@@ -331,7 +331,7 @@ export const Menu = ({
onPress={() => {
close();
NavigationService.navigate('Notes', {
- heading: item.title,
+ title: item.title,
tag: item,
type: 'tag',
});
diff --git a/apps/mobile/src/components/header/index.js b/apps/mobile/src/components/header/index.js
index ef91e5589..e6ac0921c 100644
--- a/apps/mobile/src/components/header/index.js
+++ b/apps/mobile/src/components/header/index.js
@@ -113,7 +113,14 @@ export const Header = ({
color: colors.pri,
fontFamily: WEIGHT.bold,
}}>
- {heading}
+ <Text
+ style={{
+ color: colors.accent,
+ }}>
+ {heading.slice(0, 1) === '#' ? '#' : null}
+ </Text>
+
+ {heading.slice(0, 1) === '#' ? heading.slice(1) : heading}
</Text>
</View>
<View
diff --git a/apps/mobile/src/views/Notes/index.js b/apps/mobile/src/views/Notes/index.js
index 57ae52f62..29e8125a1 100644
--- a/apps/mobile/src/views/Notes/index.js
+++ b/apps/mobile/src/views/Notes/index.js
@@ -108,10 +108,12 @@ export const Notes = ({navigation}) => {
<Container
bottomButtonText="Create a new note"
canGoBack={false}
- heading={params.title}
+ heading={'#' + params.title}
canGoBack={true}
data={notes}
- placeholder={`Search in ${params.title}`}
+ placeholder={`Search in ${
+ params.type == 'tag' ? '#' + params.title : params.title
+ }`}
bottomButtonOnPress={() => {}}>
<FlatList
data={notes}