remove anything ui

pull/3642/head
Joseph Izang 2 years ago
parent 154b7b9fe7
commit 33d8e5c0a6
  1. 17
      apps/solhint/src/app/App.tsx

@ -5,26 +5,11 @@ import { SolHint } from "./SolhintPluginClient"
const client = new SolHint()
export default function App() {
const [contents, setContents] = useState([])
useEffect(() => {
client.eventEmitter.on('report', (report: any) => {
setContents(fileContents => [...fileContents, report])
})
}, [])
return (
<>
<div className="">
<h1 className="text-2xl font-bold">Solhint Plugin</h1>
{contents.map((content, index) => {
return (
<div key={index} className="">
<div className="text-sm">{content.message}</div>
<div className="text-sm">{content.line}</div>
<div className="text-sm">{content.column}</div>
</div>
)
})}
</div>
</>
)

Loading…
Cancel
Save