Small refactoring

This commit is contained in:
Fabian Neumann
2018-04-23 12:04:53 +02:00
parent b73620bcb0
commit bbd3050b95
3 changed files with 14 additions and 13 deletions
@@ -1,9 +1,7 @@
import React from 'react';
import { gql } from 'react-apollo';
import ConfigureCard from 'coral-framework/components/ConfigureCard';
import MarkdownEditor from 'coral-framework/components/MarkdownEditor';
import t from 'coral-framework/services/i18n';
import { withFragments } from 'plugin-api/beta/client/hocs';
import cn from 'classnames';
import styles from './styles.css';
@@ -47,13 +45,4 @@ class GlobalSwitchoff extends React.Component {
}
}
// export default GlobalSwitchoff;
export default withFragments({
settings: gql`
fragment TalkPlugin_GlobalSwitchoff_settings on Settings {
globalSwitchoffEnable
globalSwitchoffMessage
}
`,
})(GlobalSwitchoff);
export default GlobalSwitchoff;
@@ -0,0 +1,12 @@
import { gql } from 'react-apollo';
import GlobalSwitchoff from '../components/GlobalSwitchoff';
import { withFragments } from 'plugin-api/beta/client/hocs';
export default withFragments({
settings: gql`
fragment TalkPlugin_GlobalSwitchoff_settings on Settings {
globalSwitchoffEnable
globalSwitchoffMessage
}
`,
})(GlobalSwitchoff);
@@ -1,4 +1,4 @@
import GlobalSwitchoff from './components/GlobalSwitchoff';
import GlobalSwitchoff from './containers/GlobalSwitchoff';
import translations from './translations.yml';
export default {