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
@@ -0,0 +1,10 @@
import {compose} from 'react-apollo';
import {excludeIf} from 'plugin-api/beta/client/hocs';
import {can} from 'plugin-api/beta/client/services';
import Button from '../components/Button';
const enhance = compose(
excludeIf((props) => !can(props.user, 'MODERATE_COMMENTS')),
);
export default enhance(Button);