remove anything ui

pull/5370/head
Joseph Izang 2 years ago
parent 91968d44ab
commit 658e967628
  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