diff --git a/app/soapbox/components/relative_timestamp.js b/app/soapbox/components/relative_timestamp.js index 2d67b331c..1e64f9807 100644 --- a/app/soapbox/components/relative_timestamp.js +++ b/app/soapbox/components/relative_timestamp.js @@ -120,6 +120,7 @@ class RelativeTimestamp extends React.Component { intl: PropTypes.object.isRequired, timestamp: PropTypes.string.isRequired, year: PropTypes.number.isRequired, + theme: PropTypes.string, futureDate: PropTypes.bool, }; @@ -129,6 +130,7 @@ class RelativeTimestamp extends React.Component { static defaultProps = { year: (new Date()).getFullYear(), + theme: 'inherit', }; shouldComponentUpdate(nextProps, nextState) { @@ -173,13 +175,13 @@ class RelativeTimestamp extends React.Component { } render() { - const { timestamp, intl, year, futureDate, ...textProps } = this.props; + const { timestamp, intl, year, futureDate, theme, ...textProps } = this.props; const date = new Date(timestamp); const relativeTime = futureDate ? timeRemainingString(intl, date, this.state.now) : timeAgoString(intl, date, this.state.now, year); return ( - + {relativeTime} );