zahmis 4 лет назад
Родитель
Сommit
741ca789b1

+ 1 - 1
src/client/js/components/Admin/SlackIntegration/CustomBotWithoutProxySettingsAccordion.jsx

@@ -34,7 +34,7 @@ const CustomBotWithoutProxySettingsAccordion = ({
 
   const updateSecretTokenHandler = async() => {
     try {
-      await appContainer.apiv3.put('/slack-integration-settings/update-settings', {
+      await appContainer.apiv3.put('/slack-integration-settings/bot-type', {
         slackSigningSecret,
         slackBotToken,
         currentBotType,

+ 1 - 20
src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

@@ -175,23 +175,4 @@ const SlackIntegration = (props) => {
               <div key={botType} className="m-3">
                 <BotTypeCard
                   botType={botType}
-                  isActive={currentBotType === botType}
-                  handleBotTypeSelect={handleBotTypeSelect}
-                />
-              </div>
-            );
-          })}
-        </div>
-      </div>
-      {settingsComponent}
-    </>
-  );
-};
-
-const SlackIntegrationWrapper = withUnstatedContainers(SlackIntegration, [AppContainer]);
-
-SlackIntegration.propTypes = {
-  appContainer: PropTypes.instanceOf(AppContainer).isRequired,
-};
-
-export default SlackIntegrationWrapper;
+                  isActive={currentBotType === botTy