Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render(): any {
return (
<div title="{this.formatDate(this.props.date," style="{this.props.style}">
</div>
);
}
}
RelativeDate.contextTypes = IntlMixin.contextTypes;
RelativeDate.childContextTypes = IntlMixin.childContextTypes;
Object.keys(IntlMixin).forEach(key => {
if (['propTypes', 'contextTypes'].indexOf(key) >= 0) {
return;
}
RelativeDate.prototype[key] = IntlMixin[key];
});
module.exports = RelativeDate;