Explorar o código

Wip passing props

Steven Fukase %!s(int64=4) %!d(string=hai) anos
pai
achega
f7a860e7b2

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

@@ -151,11 +151,11 @@ const CustomBotWithProxySettings = (props) => {
             </div>
             <WithProxyAccordions
               botType="customBotWithProxy"
-              // discardTokenHandler={discardTokenHandler}
-              // generateTokenHandler={generateTokenHandler}
-              // // TODO: Multiple accordion logic
-              // tokenPtoG={tokenPtoG}
-              // tokenGtoP={tokenGtoP}
+              discardTokenHandler={discardTokenHandler}
+              generateTokenHandler={generateTokenHandler}
+              // TODO: Multiple accordion logic
+              tokenPtoG={tokenPtoG}
+              tokenGtoP={tokenGtoP}
             />
           </>
         ))}

+ 6 - 5
src/client/js/components/Admin/SlackIntegration/WithProxyAccordions.jsx

@@ -315,16 +315,17 @@ const CustomBotIntegrationProcedure = (props) => {
 // };
 
 
-export WithProxyAccordions = (props) => {
+export const WithProxyAccordions = (props) => {
   const { t } = useTranslation();
   const integrationProcedureMapping = props.botType === 'officialBot' ? officialBotIntegrationProcedure : CustomBotIntegrationProcedure;
-
+  console.log(CustomBotIntegrationProcedure);
   return (
+
     <div
       className="card border-0 rounded-lg shadow overflow-hidden"
     >
-      {Object.entries(integrationProcedureMapping).map(([key, value]) => {
-        console.log(value) 
+      {/* {Object.entries(integrationProcedureMapping).map(([key, value]) => {
+
         return (
           <Accordion
             title={<><span className="mr-2">{key}</span>{t(`admin:slack_integration.accordion.${value.title}`)}</>}
@@ -334,7 +335,7 @@ export WithProxyAccordions = (props) => {
             {value.content}
           </Accordion>
         );
-      })}
+      })} */}
     </div>
   );
 };