Rename PubDate to CommentTimestamp

This commit is contained in:
Chi Vinh Le
2017-09-21 01:37:57 +07:00
parent 5fa4b4d734
commit 7e536cfb31
7 changed files with 16 additions and 16 deletions
@@ -3,14 +3,14 @@ import t from 'coral-framework/services/i18n';
import {ReplyButton} from 'talk-plugin-replies';
import styles from './FakeComment.css';
import {Icon} from 'plugin-api/beta/client/components/ui';
import {PubDate} from 'plugin-api/beta/client/components';
import {CommentTimestamp} from 'plugin-api/beta/client/components';
export const FakeComment = ({username, created_at, body}) => (
<div className={styles.root}>
<span className={styles.authorName}>
{username}
</span>
<PubDate created_at={created_at} />
<CommentTimestamp created_at={created_at} />
<div className={styles.body}>
{body}
</div>
@@ -2,7 +2,7 @@ import React from 'react';
import cn from 'classnames';
import styles from './Comment.css';
import {t} from 'plugin-api/beta/client/services';
import {Slot, CommentAuthorName, PubDate} from 'plugin-api/beta/client/components';
import {Slot, CommentAuthorName, CommentTimestamp} from 'plugin-api/beta/client/components';
import {Icon} from 'plugin-api/beta/client/components/ui';
import {pluginName} from '../../package.json';
import FeaturedButton from '../containers/FeaturedButton';
@@ -36,8 +36,8 @@ class Comment extends React.Component {
<Slot
fill="commentTimestamp"
defaultComponent={PubDate}
className={cn(styles.timestamp, `${pluginName}-comment-timeago`)}
defaultComponent={CommentTimestamp}
className={cn(styles.timestamp, `${pluginName}-comment-timestamp`)}
created_at={comment.created_at}
data={data}
queryData={queryData}