Fix prettier integration, format (#31)
* Fix prettier integration, format * Reformat again
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import React from 'react';
|
||||
import { observer } from "mobx-react"
|
||||
import { observer } from 'mobx-react';
|
||||
|
||||
import moment from 'moment';
|
||||
import Link from 'react-router/lib/Link';
|
||||
|
||||
import styles from './DocumentLink.scss';
|
||||
|
||||
const DocumentLink = observer((props) => {
|
||||
const DocumentLink = observer(props => {
|
||||
return (
|
||||
<Link to={ props.document.url } className={ styles.link }>
|
||||
<h3 className={ styles.title }>{ props.document.title }</h3>
|
||||
<span className={ styles.timestamp }>{ moment(props.document.updatedAt).fromNow() }</span>
|
||||
<Link to={props.document.url} className={styles.link}>
|
||||
<h3 className={styles.title}>{props.document.title}</h3>
|
||||
<span className={styles.timestamp}>
|
||||
{moment(props.document.updatedAt).fromNow()}
|
||||
</span>
|
||||
</Link>
|
||||
);
|
||||
});
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
import DocumentLink from './DocumentLink';
|
||||
export default DocumentLink;
|
||||
export default DocumentLink;
|
||||
|
||||
Reference in New Issue
Block a user