Skip to content

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

fix tags not properly show and notes page crash

ammarahm-eda9c4a9c1f467
diff --git a/apps/mobile/src/views/Notes/index.js b/apps/mobile/src/views/Notes/index.js
index 7efad06ca..28b9ee640 100644
--- a/apps/mobile/src/views/Notes/index.js
+++ b/apps/mobile/src/views/Notes/index.js
@@ -113,7 +113,7 @@ export const Notes = ({route, navigation}) => {
state: {
heading:
params.type == 'tag'
- ? '#' + params.title
+ ? '# ' + params.title
: params.title.slice(0, 1).toUpperCase() + params.title.slice(1),
},
});
@@ -145,7 +145,7 @@ export const Notes = ({route, navigation}) => {
},
});
}
- }, [favorites, isFocused]);
+ }, [notes, isFocused]);
const _onRefresh = async () => {
setRefreshing(true);
diff --git a/apps/mobile/src/views/Tags/index.js b/apps/mobile/src/views/Tags/index.js
index a972f605a..3f2f0d3ce 100644
--- a/apps/mobile/src/views/Tags/index.js
+++ b/apps/mobile/src/views/Tags/index.js
@@ -86,6 +86,11 @@ const RenderItem = ({item, index}) => {
const [state, dispatch] = useTracked();
const {colors} = state;
return (
+ <View
+ style={{
+ paddingHorizontal:12
+ }}
+ >
<TouchableOpacity
key={item.title}
onPress={() => {
@@ -100,13 +105,14 @@ const RenderItem = ({item, index}) => {
justifyContent: 'flex-start',
alignItems: 'center',
margin: 0,
- paddingVertical: pv,
+ paddingVertical: pv + 5,
borderBottomWidth: 1.5,
borderBottomColor: colors.nav,
}}>
+
<Text
style={{
- fontFamily: WEIGHT.regular,
+ fontFamily: WEIGHT.bold,
fontSize: SIZE.md,
color: colors.pri,
}}>
@@ -114,8 +120,9 @@ const RenderItem = ({item, index}) => {
style={{
color: colors.accent,
}}>
- #
+ #{' '}
</Text>
+
{item.title}
{'\n'}
<Text
@@ -131,5 +138,6 @@ const RenderItem = ({item, index}) => {
</Text>
</Text>
</TouchableOpacity>
+ </View>
);
};