Define fragments for PermalinkButton

This commit is contained in:
Chi Vinh Le
2017-08-18 19:55:51 +07:00
parent 8eaac3eaa2
commit dc49d23dc8
2 changed files with 17 additions and 1 deletions
@@ -0,0 +1,16 @@
import {gql} from 'react-apollo';
import PermalinkButton from '../components/PermalinkButton';
import {withFragments} from 'plugin-api/beta/client/hocs';
export default withFragments({
asset: gql`
fragment TalkPermalink_Button_asset on Asset {
url
}
`,
comment: gql`
fragment TalkPermalink_Button_comment on Comment {
id
}
`
})(PermalinkButton);