|
@@ -1,8 +1,7 @@
|
|
|
import React, { Fragment } from 'react';
|
|
import React, { Fragment } from 'react';
|
|
|
-// import PropTypes from 'prop-types';
|
|
|
|
|
|
|
+import PropTypes from 'prop-types';
|
|
|
|
|
+import { withTranslation } from 'react-i18next';
|
|
|
|
|
|
|
|
-// import { withUnstatedContainers } from '../../UnstatedUtils';
|
|
|
|
|
-// import AppContainer from '../../../services/AppContainer';
|
|
|
|
|
|
|
|
|
|
import AccessTokenSettings from './AccessTokenSettings';
|
|
import AccessTokenSettings from './AccessTokenSettings';
|
|
|
import CustomBotNonProxySettings from './CustomBotNonProxySettings';
|
|
import CustomBotNonProxySettings from './CustomBotNonProxySettings';
|
|
@@ -10,22 +9,20 @@ import CustomBotNonProxySettings from './CustomBotNonProxySettings';
|
|
|
class SlackIntegration extends React.Component {
|
|
class SlackIntegration extends React.Component {
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
- // const { t } = this.props;
|
|
|
|
|
|
|
+ const { t } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<Fragment>
|
|
<Fragment>
|
|
|
<div className="row">
|
|
<div className="row">
|
|
|
<div className="col-lg-12">
|
|
<div className="col-lg-12">
|
|
|
- {/* <h2 className="admin-setting-header">{t('Access Token')}</h2> */}
|
|
|
|
|
- <h2 className="admin-setting-header">Access Token</h2>
|
|
|
|
|
|
|
+ <h2 className="admin-setting-header">{t('admin:slack_integration.access_token')}</h2>
|
|
|
<AccessTokenSettings />
|
|
<AccessTokenSettings />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div className="row">
|
|
<div className="row">
|
|
|
<div className="col-lg-12">
|
|
<div className="col-lg-12">
|
|
|
- {/* <h2 className="admin-setting-header">{t('Access Token')}</h2> */}
|
|
|
|
|
- <h2 className="admin-setting-header">Custom bot (non-proxy) Settings</h2>
|
|
|
|
|
|
|
+ <h2 className="admin-setting-header">{t('admin:slack_integration.custom_button_non_proxy_settings')}</h2>
|
|
|
<CustomBotNonProxySettings />
|
|
<CustomBotNonProxySettings />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -36,12 +33,8 @@ class SlackIntegration extends React.Component {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// const SlackIntegrationWrapper = withUnstatedContainers(SlackIntegration, [AppContainer]);
|
|
|
|
|
|
|
+SlackIntegration.propTypes = {
|
|
|
|
|
+ t: PropTypes.func.isRequired, // i18next
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
-// SlackIntegration.propTypes = {
|
|
|
|
|
-// t: PropTypes.func.isRequired, // i18next
|
|
|
|
|
-// appContainer: PropTypes.instanceOf(AppContainer).isRequired,
|
|
|
|
|
-// slackIntegrationContainer: PropTypes.instanceOf(SlackIntegrationContainer).isRequired,
|
|
|
|
|
-// };
|
|
|
|
|
-
|
|
|
|
|
-export default SlackIntegration;
|
|
|
|
|
|
|
+export default withTranslation()(SlackIntegration);
|