mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
refactor: fix some coding style pointed by standard js
This commit is contained in:
@@ -324,8 +324,8 @@ class NoteList extends React.Component {
|
||||
const isDefault = config.listStyle === 'DEFAULT'
|
||||
const isActive = location.query.key === note.storage + '-' + note.key
|
||||
const dateDisplay = moment(
|
||||
config.sortBy === 'CREATED_AT' ?
|
||||
note.createdAt : note.updatedAt
|
||||
config.sortBy === 'CREATED_AT'
|
||||
? note.createdAt : note.updatedAt
|
||||
).fromNow()
|
||||
const key = `${note.storage}-${note.key}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user