Adding FeaturedButton (we already have Button with Coral-UI)

This commit is contained in:
Belen Curcio
2017-09-11 10:59:16 -03:00
parent 59e21cccba
commit 908b3c20b4
7 changed files with 15 additions and 14 deletions
@@ -1,10 +1,12 @@
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';
import {can} from 'plugin-api/beta/client/services';
import {excludeIf, withTags} from 'plugin-api/beta/client/hocs';
const enhance = compose(
excludeIf((props) => !can(props.user, 'MODERATE_COMMENTS')),
withTags('featured')
);
export default enhance(Button);