time format short

This commit is contained in:
feruz 2019-12-21 10:34:54 +02:00
parent a75c827f55
commit cfbbbf585a
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>