Skip to content

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

fix notebook item ui

ammarahm-ed9a874b4a9da9
diff --git a/apps/mobile/src/components/NotebookItem/index.js b/apps/mobile/src/components/NotebookItem/index.js
index 27cc510eb..74564acf3 100644
--- a/apps/mobile/src/components/NotebookItem/index.js
+++ b/apps/mobile/src/components/NotebookItem/index.js
@@ -38,7 +38,7 @@ export const NotebookItem = ({
? NavigationService.navigate('Notes', {
...item,
})
- : navigation.navigate('Notebook', {
+ : NavigationService.navigate('Notebook', {
notebook: item,
title: hideMore ? 'Select Topic' : item.title,
isMove: isMove,
@@ -204,18 +204,24 @@ export const NotebookItem = ({
alignItems: 'center',
marginTop: 5,
}}>
- {item.favorite ? (
- <Icon
- style={{width: 30}}
- name="star"
- size={SIZE.xs}
- color={colors.icon}
- />
- ) : null}
+ <Text
+ style={{
+ color: colors.icon,
+ fontSize: SIZE.xxs,
+ textAlignVertical: 'center',
+ fontFamily: WEIGHT.regular,
+ }}>
+ {item && item.totalNotes && item.totalNotes > 1
+ ? item.totalNotes + ' notes'
+ : item.totalNotes === 1
+ ? item.totalNotes + ' note'
+ : '0 notes'}
+ </Text>
<Text
style={{
color: colors.accent,
+ marginLeft: 10,
fontSize: SIZE.xxs,
textAlignVertical: 'center',
fontFamily: WEIGHT.regular,
@@ -224,21 +230,6 @@ export const NotebookItem = ({
</Text>
</View>
)}
-
- <Text
- style={{
- color: colors.icon,
- fontSize: SIZE.xxs,
- textAlignVertical: 'center',
- fontFamily: WEIGHT.regular,
- marginTop: 5,
- }}>
- {item && item.totalNotes && item.totalNotes > 1
- ? item.totalNotes + ' notes'
- : item.totalNotes === 1
- ? item.totalNotes + ' note'
- : '0 notes'}
- </Text>
</TouchableOpacity>
{hideMore ||
(item.title === 'General' && item.type === 'topic') ? null : (