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

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

@@ -62,11 +62,9 @@ const CustomBotWithProxyIntegrationCard = (props) => {
           </div>
         </div>
         <div className="card-body text-center">
-          {Object.keys(props.growiApp).length > 0 && (
-            <div className={`mt-5 border p-2 mx-3 ${props.growiApp.active ? 'bg-primary text-light' : 'border text-primary'}`}>
-              {props.growiApp.name}
-            </div>
-          )}
+          <div className="mt-5 border p-2 mx-3 bg-primary text-light">
+            {props.siteName}
+          </div>
         </div>
       </div>
     </div>
@@ -74,7 +72,7 @@ const CustomBotWithProxyIntegrationCard = (props) => {
 };
 
 CustomBotWithProxyIntegrationCard.propTypes = {
-  growiApp: PropTypes.object,
+  siteName: PropTypes.string.isRequired,
   slackWorkSpaces: PropTypes.array,
   isSlackScopeSet: PropTypes.bool,
 };

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

@@ -84,12 +84,7 @@ const CustomBotWithProxySettings = (props) => {
 
       {/* TODO delete tmp props */}
       <CustomBotWithProxyIntegrationCard
-        growiApp={
-          {
-            name: 'siteName',
-            active: true,
-          }
-        }
+        siteName="siteName"
         slackWorkSpaces={
           [
             { name: 'wsName1', active: true },

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

@@ -82,12 +82,7 @@ const OfficialBotSettings = (props) => {
       <h2 className="admin-setting-header">{t('admin:slack_integration.official_bot_integration')}</h2>
       {/* TODO delete tmp props */}
       <CustomBotWithProxyIntegrationCard
-        growiApp={
-          {
-            name: 'siteName',
-            active: true,
-          }
-        }
+        siteName="siteName"
         slackWorkSpaces={
           [
             { name: 'wsName1', active: true },