[Settings > Items] card: Make time badge modular

pull/62/head
Oj18 3 years ago
parent 6ff2da4c2c
commit 7a5a58ab27

@ -172,8 +172,8 @@ return class Card extends React.PureComponent {
})
)) : null,
React.createElement(SimpleTooltip, {
text: `${this.props.subtext2} | ${prettyAgo(this.props.lastUpdated * 1000)}`,
(this.props.lastUpdated || this.props.subtext2) ? React.createElement(SimpleTooltip, {
text: (this.props.subtext2 || '') + (this.props.subtext2 && this.props.lastUpdated ? ' | ' : '') + (this.props.lastUpdated ? prettyAgo(this.props.lastUpdated * 1000) : ''),
position: 'left'
}, ({ onMouseEnter, onMouseLeave, className, text }) => React.createElement(Clock, {
width: 24,
@ -184,7 +184,7 @@ return class Card extends React.PureComponent {
className,
onMouseEnter,
onMouseLeave
})),
})) : null,
this.props.notice ? React.createElement(SimpleTooltip, {
text: notice,

Loading…
Cancel
Save