mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 19:15:26 +08:00
27 lines
650 B
JavaScript
27 lines
650 B
JavaScript
import React from 'react';
|
|
import { compose, gql } from 'react-apollo';
|
|
import TabPane from '../components/TabPane';
|
|
import { withFragments } from 'plugin-api/beta/client/hocs';
|
|
import { getSlotFragmentSpreads } from 'plugin-api/beta/client/utils';
|
|
|
|
const slots = ['profileSettings'];
|
|
|
|
class TabPaneContainer extends React.Component {
|
|
render() {
|
|
return <TabPane {...this.props} />;
|
|
}
|
|
}
|
|
|
|
const enhance = compose(
|
|
withFragments({
|
|
root: gql`
|
|
fragment TalkProfileSettings_TabPane_root on RootQuery {
|
|
__typename
|
|
${getSlotFragmentSpreads(slots, 'root')}
|
|
}
|
|
`,
|
|
})
|
|
);
|
|
|
|
export default enhance(TabPaneContainer);
|