Adding go to conversation

This commit is contained in:
Belen Curcio
2017-07-13 17:29:54 -03:00
parent b5ce16a33b
commit b8d00ec9ce
5 changed files with 24 additions and 5 deletions
@@ -1,8 +1,13 @@
import React from 'react';
import FeaturedComment from './FeaturedComment';
export default ({asset: {featuredComments}}) => (
export default ({asset: {featuredComments}, setActiveTab}) => (
<div>
{featuredComments.nodes.map((comment) => <FeaturedComment key={comment.id} comment={comment} />)}
{featuredComments.nodes.map((comment) =>
<FeaturedComment
key={comment.id}
comment={comment}
setActiveTab={setActiveTab} />
)}
</div>
);