Removes the lowercasing to the header title component
This commit is contained in:
1 parent
580f1e79ba
commit
f444de0b87
5 files changed
+15
-16
No files matched your search
@@ -4,8 +4,9 @@ import moment from 'moment'
|
||||
export default function (date) {
|
||||
const today = LocalDate.now()
|
||||
const dateToDisplay = LocalDate.parse(date)
|
||||
const formattedDate = today.equals(dateToDisplay) ? 'today' : moment(date).format('MMMM Do YYYY')
|
||||
return formattedDate.toLowerCase()
|
||||
return today.equals(dateToDisplay) ?
|
||||
'today' :
|
||||
moment(date).format('MMMM Do YYYY')
|
||||
}
|
||||
|
||||
export function formatDateForShortText (date) {
|
||||
|
||||
Reference in new issue
Block a user