mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 23:58:38 +08:00
Removing can since thats already checked
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import {compose} from 'react-apollo';
|
||||
|
||||
import Button from '../components/Button';
|
||||
import {can} from 'plugin-api/beta/client/services';
|
||||
import {excludeIf, withTags} from 'plugin-api/beta/client/hocs';
|
||||
import ModActionButton from '../components/ModActionButton';
|
||||
import {withTags} from 'plugin-api/beta/client/hocs';
|
||||
|
||||
const enhance = compose(
|
||||
excludeIf((props) => !can(props.user, 'MODERATE_COMMENTS')),
|
||||
withTags('featured')
|
||||
withTags('featured'),
|
||||
);
|
||||
|
||||
export default enhance(Button);
|
||||
export default enhance(ModActionButton);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import Tab from './containers/Tab';
|
||||
import Tag from './containers/Tag';
|
||||
import ModActionButton from './components/ModActionButton';
|
||||
import TabPane from './containers/TabPane';
|
||||
import translations from './translations.yml';
|
||||
import update from 'immutability-helper';
|
||||
import reducer from './reducer';
|
||||
import ModTag from './containers/ModTag';
|
||||
import ModActionButton from './containers/ModActionButton';
|
||||
import ModSubscription from './containers/ModSubscription';
|
||||
|
||||
import {findCommentInEmbedQuery} from 'coral-embed-stream/src/graphql/utils';
|
||||
|
||||
Reference in New Issue
Block a user