mirror of
https://github.com/wassname/talk.git
synced 2026-08-08 11:28:12 +08:00
Implement excludeIf for the plugins API
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {compose, gql} from 'react-apollo';
|
||||
import withFragments from 'coral-framework/hocs/withFragments';
|
||||
import excludeIf from 'coral-framework/hocs/excludeIf';
|
||||
import Tab from '../components/Tab';
|
||||
|
||||
// TODO: This is just example code, and needs to replaced by an actual implementation.
|
||||
@@ -12,6 +13,7 @@ const enhance = compose(
|
||||
}
|
||||
}`,
|
||||
}),
|
||||
excludeIf((props) => props.asset.recentComments.length === 0)
|
||||
);
|
||||
|
||||
export default enhance(Tab);
|
||||
|
||||
Reference in New Issue
Block a user