time format short

This commit is contained in:
feruz 2019-12-21 10:34:54 +02:00
parent c5f5d20b88
commit ce6a1709d8
3 changed files with 11 additions and 1 deletions

View File

@ -37,6 +37,8 @@ const UserListItem = ({
<FormattedRelativeTime
value={description.value}
numeric="auto"
// eslint-disable-next-line react/style-prop-object
style="short"
unit={description.unit}
/>
</Text>

View File

@ -81,7 +81,13 @@ class PostHeaderDescription extends PureComponent {
{isPromoted ? (
intl.formatMessage({ id: 'post.sponsored' })
) : (
<FormattedRelativeTime value={date.value} numeric="auto" unit={date.unit} />
<FormattedRelativeTime
value={date.value}
// eslint-disable-next-line react/style-prop-object
style="short"
numeric="auto"
unit={date.unit}
/>
)}
</Text>
{isShowOwnerIndicator && (

View File

@ -335,6 +335,8 @@ class UpvoteView extends Component {
<FormattedRelativeTime
value={payoutDate.value}
numeric="auto"
// eslint-disable-next-line react/style-prop-object
style="short"
unit={payoutDate.unit}
/>
</Text>