summaryrefslogtreecommitdiffstats
path: root/ui/src/components/moment-time.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-10-18 17:20:27 -0700
committerDessalines <tyhou13@gmx.com>2019-10-18 17:20:27 -0700
commit4e5561283392d2ab1545cabb4455a8ffc490f86b (patch)
treea4ee9cc096826dc32faf3675212c7f95f1b3ea5e /ui/src/components/moment-time.tsx
parent82ea5ae9186e5a8e631c87a61077e16713eb87a4 (diff)
Running prettier on code.
- #305 , #309
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>;
}
}
}