summaryrefslogtreecommitdiffstats
path: root/ui/src/components/moment-time.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/moment-time.tsx')
-rw-r--r--ui/src/components/moment-time.tsx13
1 files changed, 6 insertions, 7 deletions
diff --git a/ui/src/components/moment-time.tsx b/ui/src/components/moment-time.tsx
index c6cd981b..6bb4d99c 100644
--- a/ui/src/components/moment-time.tsx
+++ b/ui/src/components/moment-time.tsx
@@ -8,11 +8,10 @@ interface MomentTimeProps {
published?: string;
when_?: string;
updated?: string;
- }
+ };
}
export class MomentTime extends Component<MomentTimeProps, any> {
-
constructor(props: any, context: any) {
super(props, context);
@@ -24,13 +23,13 @@ export class MomentTime extends Component<MomentTimeProps, any> {
render() {
if (this.props.data.updated) {
return (
- <span title={this.props.data.updated} className="font-italics">{i18n.t('modified')} {moment.utc(this.props.data.updated).fromNow()}</span>
- )
+ <span title={this.props.data.updated} className="font-italics">
+ {i18n.t('modified')} {moment.utc(this.props.data.updated).fromNow()}
+ </span>
+ );
} else {
let str = this.props.data.published || this.props.data.when_;
- return (
- <span title={str}>{moment.utc(str).fromNow()}</span>
- )
+ return <span title={str}>{moment.utc(str).fromNow()}</span>;
}
}
}