With Featured Comments :)

This commit is contained in:
Belen Curcio
2017-09-08 09:06:33 -03:00
parent 05d643d3c3
commit fd71acf7e0
8 changed files with 123 additions and 47 deletions
@@ -11,10 +11,20 @@ const mapStateToProps = ({auth}) => ({
const enhance = compose(
connect(mapStateToProps),
withFragments({
asset: gql`
fragment TalkModerationActions_asset on Asset {
id
}`
,
comment: gql`
fragment TalkModerationActions_comment on Comment {
id
status
tags {
tag {
name
}
}
}
`}),
excludeIf((props) => !can(props.user, 'MODERATE_COMMENTS')),