Adding fragments to the slot

This commit is contained in:
okbel
2018-03-05 14:46:09 -03:00
parent 59da1ec1af
commit dcddfa4f39
@@ -4,6 +4,9 @@ import withFragments from 'coral-framework/hocs/withFragments';
import { getDefinitionName } from 'coral-framework/utils';
import CommentLabels from './CommentLabels';
import CommentDetails from './CommentDetails';
import { getSlotFragmentSpreads } from 'coral-framework/utils';
const slots = ['draftArea'];
export default withFragments({
root: gql`
@@ -38,6 +41,7 @@ export default withFragments({
status_history {
type
}
${getSlotFragmentSpreads(slots, 'comment')}
...${getDefinitionName(CommentLabels.fragments.comment)}
...${getDefinitionName(CommentDetails.fragments.comment)}
}