Просмотр исходного кода

wip import/no-named-as-default fix

Steven Fukase 4 лет назад
Родитель
Сommit
57d8323841

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

@@ -135,11 +135,8 @@ const CustomBotWithProxySettings = (props) => {
 
         {/* // TODO: Multiple accordion logic */}
         {Array(...Array(accordionComponentsCount)).map(i => (
-          <>
-            <div
-              className="d-flex justify-content-end"
-              key={i}
-            >
+          <React.Fragment key={i}>
+            <div className="d-flex justify-content-end">
               <button
                 className="my-3 btn btn-outline-danger"
                 type="button"
@@ -156,7 +153,7 @@ const CustomBotWithProxySettings = (props) => {
               tokenPtoG={tokenPtoG}
               tokenGtoP={tokenGtoP}
             />
-          </>
+          </React.Fragment>
         ))}
 
         {/* TODO: Disable button when integration is incomplete */}

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

@@ -257,7 +257,7 @@ const TestProcess = () => {
 };
 
 
-export const WithProxyAccordions = (props) => {
+const WithProxyAccordions = (props) => {
   const { t } = useTranslation();
 
   const officialBotIntegrationProcedure = {
@@ -315,6 +315,7 @@ export const WithProxyAccordions = (props) => {
   };
 
   const integrationProcedureMapping = props.botType === 'officialBot' ? officialBotIntegrationProcedure : CustomBotIntegrationProcedure;
+
   return (
     <div
       className="card border-0 rounded-lg shadow overflow-hidden"