From 689610320e69cd4b473e98e43394ee91365bde4b Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 27 Jun 2023 20:32:55 +0100 Subject: [PATCH] remove BasicTabBody for bugs sake --- .../src/lib/components/BasicTabBody.tsx | 73 ------------------- 1 file changed, 73 deletions(-) delete mode 100644 libs/remix-ui/static-analyser/src/lib/components/BasicTabBody.tsx diff --git a/libs/remix-ui/static-analyser/src/lib/components/BasicTabBody.tsx b/libs/remix-ui/static-analyser/src/lib/components/BasicTabBody.tsx deleted file mode 100644 index 6899a6e294..0000000000 --- a/libs/remix-ui/static-analyser/src/lib/components/BasicTabBody.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import React from 'react' -import ErrorRenderer from "../ErrorRenderer" - -type BasicTabBodyProps = { - state: any - hideWarnings: boolean - showLibsWarning: boolean - warningState: any - ssaWarnings: any[] - ssaWarningsNoLibs: any[] - startAnalysis: boolean - analysisModule: any -} -export function BasicTabBody({ state, hideWarnings, ssaWarnings, ssaWarningsNoLibs, showLibsWarning, warningState, startAnalysis, analysisModule}: BasicTabBodyProps) { - - return ( - <> - {ssaWarningsNoLibs.length > 0 ? ( -
-
- { - (hideWarnings === false && showLibsWarning === false) && ssaWarningsNoLibs.length > 0 - ? ssaWarningsNoLibs.filter(x => x.options.isLibrary === false).map((item, index) => ( -
- -
- )) - : null - } - { - hideWarnings === false && showLibsWarning === true && ssaWarnings.length > 0 - ? ssaWarnings.map((warning, index) => ( -
- -
- )) : null - } -
-
- ) : state.data && - state.file.length > 0 && - state.source && - startAnalysis && - Object.entries(warningState).length > 0 ? ( - - Loading... - - ) : ( - Nothing to report - )} - - ); -}