mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
time format short
This commit is contained in:
parent
c5f5d20b88
commit
ce6a1709d8
@ -37,6 +37,8 @@ const UserListItem = ({
|
|||||||
<FormattedRelativeTime
|
<FormattedRelativeTime
|
||||||
value={description.value}
|
value={description.value}
|
||||||
numeric="auto"
|
numeric="auto"
|
||||||
|
// eslint-disable-next-line react/style-prop-object
|
||||||
|
style="short"
|
||||||
unit={description.unit}
|
unit={description.unit}
|
||||||
/>
|
/>
|
||||||
</Text>
|
</Text>
|
||||||
|
@ -81,7 +81,13 @@ class PostHeaderDescription extends PureComponent {
|
|||||||
{isPromoted ? (
|
{isPromoted ? (
|
||||||
intl.formatMessage({ id: 'post.sponsored' })
|
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>
|
</Text>
|
||||||
{isShowOwnerIndicator && (
|
{isShowOwnerIndicator && (
|
||||||
|
@ -335,6 +335,8 @@ class UpvoteView extends Component {
|
|||||||
<FormattedRelativeTime
|
<FormattedRelativeTime
|
||||||
value={payoutDate.value}
|
value={payoutDate.value}
|
||||||
numeric="auto"
|
numeric="auto"
|
||||||
|
// eslint-disable-next-line react/style-prop-object
|
||||||
|
style="short"
|
||||||
unit={payoutDate.unit}
|
unit={payoutDate.unit}
|
||||||
/>
|
/>
|
||||||
</Text>
|
</Text>
|
||||||
|
Loading…
Reference in New Issue
Block a user