mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
Define fragments for PermalinkButton
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user