Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 3156652

Browse files
authored
Merge pull request #173 from BoostIO/show-only-updated-date
Showing only the updated date on note list
2 parents 4e47f02 + 1202a5a commit 3156652

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/components/NoteList/NoteListItem.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,11 @@ class NoteListItem extends Component {
104104
style={styles.noteList}
105105
onPress={this.onNotePress}>
106106
<View style={styles.noteItemSectionLeft}>
107-
<Text numberOfLines={2} ellipsizeMode="tail" style={content !== 'Tap here and write something!' ? styles.noteListText : styles.noteListTextNone}>{removeMd(content)}</Text>
107+
<Text numberOfLines={2} ellipsizeMode="tail" style={content !== 'Tap here and write something!' ? styles.noteListText : styles.noteListTextNone}>{removeMd(content)}</Text>
108108
</View>
109109
<View style={styles.noteItemSectionRight}>
110-
<Text style={styles.noteListDate}>{moment(updatedAt).format('MMM D') + '\n' + moment(createdAt).format('MMM D')}</Text>
110+
{/* <Text style={styles.noteListDate}>{moment(updatedAt).format('MMM D') + '\n' + moment(createdAt).format('MMM D')}</Text> */}
111+
<Text style={styles.noteListDate}>{moment(updatedAt).format('MMM D')}</Text>
111112
<TouchableOpacity onPress={this.onStarPress}>
112113
<Icon name={isStarred ? 'md-star' : 'md-star-outline'} style={styles.noteStarIcon} />
113114
</TouchableOpacity>

0 commit comments

Comments
 (0)