mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 09:16:11 +08:00
Merge branch 'graphql' of github.com:coralproject/talk into graphql
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
authActions
|
||||
} from '../../coral-framework';
|
||||
|
||||
import Comment from './Comment';
|
||||
import Stream from './Stream';
|
||||
|
||||
import CommentBox from '../../coral-plugin-commentbox/CommentBox';
|
||||
import InfoBox from '../../coral-plugin-infobox/InfoBox';
|
||||
@@ -153,11 +153,7 @@ class Embed extends Component {
|
||||
refetch={refetch}
|
||||
showSignInDialog={showSignInDialog}/>
|
||||
}
|
||||
{
|
||||
asset.comments.map(comment => {
|
||||
return <Comment key={comment.id} comment={comment} />;
|
||||
})
|
||||
}
|
||||
<Stream comments={asset.comments} />
|
||||
{
|
||||
<Notification
|
||||
notifLength={4500}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
import React, {Component, PropTypes} from 'react';
|
||||
import Comment from './Comment';
|
||||
|
||||
const Stream = ({comments}) => {
|
||||
return (
|
||||
<div>
|
||||
{
|
||||
comments.map(comment => {
|
||||
return <Comment key={comment.id} comment={comment} />;
|
||||
})
|
||||
}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Stream.propTypes = {
|
||||
comments: PropTypes.array.isRequired
|
||||
};
|
||||
|
||||
export default Stream;
|
||||
|
||||
Reference in New Issue
Block a user