diff --git a/libs/remix-ui/static-analyser/src/lib/components/BasicTabBody.tsx b/libs/remix-ui/static-analyser/src/lib/components/BasicTabBody.tsx index 4c0ca1aeb8..e06aa67bda 100644 --- a/libs/remix-ui/static-analyser/src/lib/components/BasicTabBody.tsx +++ b/libs/remix-ui/static-analyser/src/lib/components/BasicTabBody.tsx @@ -16,10 +16,10 @@ export function BasicTabBody({ state, hideWarnings, showLibsWarning, warningStat {Object.entries(warningState).length > 0 ? (
- {Object.entries(warningState).map((element, index) => ( + {Object.entries(warningState).map((warning, index) => (
- { hideWarnings === false ? {element[0]} : null} - { hideWarnings === false ? element[1]["map"]( + { hideWarnings === false ? {warning[0]} : null} + { hideWarnings === false ? warning[1]["map"]( (x,i) => // eslint-disable-line dot-notation x.hasWarning ? ( // eslint-disable-next-line dot-notation @@ -36,26 +36,43 @@ export function BasicTabBody({ state, hideWarnings, showLibsWarning, warningStat editor={analysisModule} />
- ) : null - ) : element[1]["map"]( - (x,i) => // eslint-disable-line dot-notation - showLibsWarning && x.isLibrary - ? ( // eslint-disable-next-line dot-notation + ) : null) : null} + { + hideWarnings === false ? warning[1]["map"]((x,i) =>( + showLibsWarning === false ? ( + x.isLibrary ? (
- -
- ) : null)} - {} + data-id={`staticAnalysisModule${x.warningModuleName}${i}`} + id={`staticAnalysisModule${x.warningModuleName}${i}`} + key={i} + > + +
+ ) : null): null)) : null + } + { + hideWarnings === false ? warning[1]["map"]((x,i) =>( +
3 + +
+ )) : null + }
))}