mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 15:45:47 +08:00
26 lines
603 B
JavaScript
26 lines
603 B
JavaScript
import React, {PropTypes} from 'react';
|
|
import Comment from './Comment';
|
|
import styles from './CommentHistory.css';
|
|
|
|
const CommentHistory = (props) => {
|
|
return (
|
|
<div className={`${styles.header} commentHistory`}>
|
|
<div className="commentHistory__list">
|
|
{props.comments.map((comment, i) => {
|
|
return <Comment
|
|
key={i}
|
|
comment={comment}
|
|
link={props.link}
|
|
asset={comment.asset} />;
|
|
})}
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
CommentHistory.propTypes = {
|
|
comments: PropTypes.array.isRequired
|
|
};
|
|
|
|
export default CommentHistory;
|