|
@@ -16,11 +16,6 @@ const CustomBotWithoutProxySettings = (props) => {
|
|
|
const [siteName, setSiteName] = useState('');
|
|
const [siteName, setSiteName] = useState('');
|
|
|
const [isDeleteConfirmModalShown, setIsDeleteConfirmModalShown] = useState(false);
|
|
const [isDeleteConfirmModalShown, setIsDeleteConfirmModalShown] = useState(false);
|
|
|
|
|
|
|
|
- const fetchSlackIntegrationData = () => {
|
|
|
|
|
- if (props.fetchSlackIntegrationData != null) {
|
|
|
|
|
- props.fetchSlackIntegrationData();
|
|
|
|
|
- }
|
|
|
|
|
- };
|
|
|
|
|
|
|
|
|
|
const onSetIsSetupSlackBot = () => {
|
|
const onSetIsSetupSlackBot = () => {
|
|
|
if (props.onSetIsSetupSlackBot != null) {
|
|
if (props.onSetIsSetupSlackBot != null) {
|
|
@@ -36,7 +31,6 @@ const CustomBotWithoutProxySettings = (props) => {
|
|
|
currentBotType: '',
|
|
currentBotType: '',
|
|
|
});
|
|
});
|
|
|
onSetIsSetupSlackBot(false);
|
|
onSetIsSetupSlackBot(false);
|
|
|
- fetchSlackIntegrationData();
|
|
|
|
|
toastSuccess('success');
|
|
toastSuccess('success');
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
@@ -101,7 +95,6 @@ CustomBotWithoutProxySettings.propTypes = {
|
|
|
isSetupSlackBot: PropTypes.bool,
|
|
isSetupSlackBot: PropTypes.bool,
|
|
|
slackWSNameInWithoutProxy: PropTypes.string,
|
|
slackWSNameInWithoutProxy: PropTypes.string,
|
|
|
onSetIsSetupSlackBot: PropTypes.func,
|
|
onSetIsSetupSlackBot: PropTypes.func,
|
|
|
- fetchSlackIntegrationData: PropTypes.func,
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export default CustomBotWithoutProxySettingsWrapper;
|
|
export default CustomBotWithoutProxySettingsWrapper;
|