Fix timeago with lang.

This commit is contained in:
gaba
2017-05-17 18:05:41 -07:00
parent 8d492ca4e9
commit 9e954f0ae3
6 changed files with 20 additions and 8 deletions
@@ -14,7 +14,7 @@ import BanUserButton from 'coral-admin/src/components/BanUserButton';
const linkify = new Linkify();
import {t, timeago} from 'coral-i18n/services/i18n';
import {t, timeAgo} from 'coral-i18n/services/i18n';
const Comment = ({
actions = [],
@@ -57,7 +57,7 @@ const Comment = ({
{comment.user.name}
</span>
<span className={styles.created}>
{timeago(comment.created_at || Date.now() - props.index * 60 * 1000)}
{timeAgo(comment.created_at || Date.now() - props.index * 60 * 1000)}
</span>
<BanUserButton
user={comment.user}