From 3668ad4a9c1e8c5f1c670c463984474c92eabc2a Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 29 May 2023 23:29:57 +0100 Subject: [PATCH] remove unwanted component --- .../src/lib/components/SolHintTabChild.tsx | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 libs/remix-ui/static-analyser/src/lib/components/SolHintTabChild.tsx diff --git a/libs/remix-ui/static-analyser/src/lib/components/SolHintTabChild.tsx b/libs/remix-ui/static-analyser/src/lib/components/SolHintTabChild.tsx deleted file mode 100644 index 498f8dbc93..0000000000 --- a/libs/remix-ui/static-analyser/src/lib/components/SolHintTabChild.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import React, { useEffect, useState } from "react" -import { SolHintTabChildProps } from "../../staticanalyser" -import ErrorRenderer from "../ErrorRenderer" - - - -export default function SolHintTabChild(props: SolHintTabChildProps) { - const [hints, setHints] = useState([]) - console.log({ hints }) - - useEffect(() => { - props.analysisModule.on('solidity', 'compilationFinished', - async (fileName, source, languageVersion, data) => { - const hints = await props.analysisModule.call('solhint', 'lint', fileName) - setHints(prev => [...prev, ...hints]) - }) - }, []) - return ( - <> - {hints.length > 0 && -
-
- { - (hints.map((hint, index) => { - const options = { - type: hint.type, - filename: props.currentFile, - errCol: hint.column, - errLine: hint.line, - warning: hint.formattedMessage, - locationString: `${hint.line}:${hint.column}`, - location: { start: { line: hint.line, column: hint.column } }, - isLibrary: false, - hasWarnings: hint.type === 'warning', - items: { - location: '', - warning: hint.formattedMessage, - } - }; - ( -
-
- -
-
- )})) - } -
-
- } - - ) - } \ No newline at end of file