From 198e926b4eda7f32c0000658424639d2cb074c0e Mon Sep 17 00:00:00 2001 From: Davor Date: Tue, 2 Aug 2022 23:47:28 +0200 Subject: [PATCH] fix warnings --- src/modules/apps/components/AdvancedTab/AdvancedTab.tsx | 4 ++-- src/modules/apps/components/GeneralTab/GeneralTab.tsx | 2 +- src/services/apps/redux/actions.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/apps/components/AdvancedTab/AdvancedTab.tsx b/src/modules/apps/components/AdvancedTab/AdvancedTab.tsx index b3fb2f6..d538172 100644 --- a/src/modules/apps/components/AdvancedTab/AdvancedTab.tsx +++ b/src/modules/apps/components/AdvancedTab/AdvancedTab.tsx @@ -7,7 +7,7 @@ import 'prismjs/components/prism-clike'; import 'prismjs/components/prism-yaml'; import 'prismjs/themes/prism.css'; import { initialEditorYaml } from '../../consts'; -import { Secrets } from './components'; +// import { Secrets } from './components'; function classNames(...classes: any) { return classes.filter(Boolean).join(' '); @@ -158,7 +158,7 @@ search: - + {/* */} ); }; diff --git a/src/modules/apps/components/GeneralTab/GeneralTab.tsx b/src/modules/apps/components/GeneralTab/GeneralTab.tsx index 5211a7f..2d7a8ec 100644 --- a/src/modules/apps/components/GeneralTab/GeneralTab.tsx +++ b/src/modules/apps/components/GeneralTab/GeneralTab.tsx @@ -1,5 +1,5 @@ import _ from 'lodash'; -import React, { useEffect, useRef } from 'react'; +import React, { useEffect } from 'react'; import { SubmitHandler, useForm } from 'react-hook-form'; import { Switch } from 'src/components/Form'; import { App, useApps } from 'src/services/apps'; diff --git a/src/services/apps/redux/actions.ts b/src/services/apps/redux/actions.ts index 17b8f2c..09ebe36 100644 --- a/src/services/apps/redux/actions.ts +++ b/src/services/apps/redux/actions.ts @@ -124,7 +124,7 @@ export const deleteApp = (appData: any) => async (dispatch: Dispatch) => { dispatch(setAppLoading(true)); try { - const { data } = await performApiCall({ + await performApiCall({ path: `/apps/${appData.slug}`, method: 'DELETE', body: { remove_app_data: appData.removeAppData },