mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
Fix timeago with lang.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user