Shun Miyazawa 4 лет назад
Родитель
Сommit
907050eefd

+ 6 - 2
src/client/js/components/Admin/SlackIntegration/CustomBotWithProxyIntegrationCard.jsx

@@ -1,8 +1,8 @@
 import React from 'react';
 import { useTranslation } from 'react-i18next';
+import PropTypes from 'prop-types';
 
-const CustomBotWithProxyIntegrationCard = () => {
-
+const CustomBotWithProxyIntegrationCard = (props) => {
   const { t } = useTranslation();
 
   return (
@@ -49,4 +49,8 @@ const CustomBotWithProxyIntegrationCard = () => {
   );
 };
 
+CustomBotWithProxyIntegrationCard.propTypes = {
+  isSlackScopeSet: PropTypes.bool.isRequired,
+};
+
 export default CustomBotWithProxyIntegrationCard;

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

@@ -17,7 +17,9 @@ const CustomBotWithProxySettings = (props) => {
 
       <h2 className="admin-setting-header">{t('admin:slack_integration.custom_bot_with_proxy_integration')}</h2>
 
-      <CustomBotWithProxyIntegrationCard />
+      <CustomBotWithProxyIntegrationCard
+        isSlackScopeSet={true}
+      />
 
       <div className="my-5 mx-3">
         <CustomBotWithProxySettingsAccordion />