Skip to content

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

fix incorrect position of data type on note trash items

ammarahm-ed4f1cc86df9be
diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.js
index 6c076c51b..f8a672eaa 100644
--- a/apps/mobile/src/components/NoteItem/index.js
+++ b/apps/mobile/src/components/NoteItem/index.js
@@ -269,18 +269,19 @@ const NoteItem = ({item, isTrash, tags}) => {
style={{
marginRight: 10,
}}>
- {item.itemType[0].toUpperCase() + item.itemType.slice(1)}
+ Deleted on{' '}
+ {item && item.dateDeleted
+ ? new Date(item.dateDeleted).toISOString().slice(0, 10)
+ : null}
</Paragraph>
+
<Paragraph
- color={colors.icon}
+ color={colors.accent}
size={SIZE.xs}
style={{
marginRight: 10,
}}>
- Deleted on{' '}
- {item && item.dateDeleted
- ? new Date(item.dateDeleted).toISOString().slice(0, 10)
- : null}
+ {item.itemType[0].toUpperCase() + item.itemType.slice(1)}
</Paragraph>
</>
)}