mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 02:43:46 +08:00
Adding fragments to the slot
This commit is contained in:
@@ -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)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user