mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
Small refactoring
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user