Merge pull request #2284 from ethereum/analysisFix

static analysis fixes
pull/2278/head
yann300 3 years ago committed by GitHub
commit 205742d364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      libs/remix-ui/static-analyser/src/lib/ErrorRenderer.tsx
  2. 2
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -46,9 +46,6 @@ const ErrorRenderer = ({ message, opt, editor, name }: ErrorRendererProps) => {
return (
<div>
<div className={`sol ${opt.type} ${classList}`}>
<div className="close" data-id="renderer">
<i className="fas fa-times"></i>
</div>
<span className='d-flex flex-column' data-id={`${name}Button`} onClick={async () => await handlePointToErrorOnClick(opt.location, opt.fileName)}>
<span className='h6 font-weight-bold'>{opt.name}</span>
{ opt.item.warning }

@ -526,7 +526,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
title="when checked, the results are also displayed for external contract libraries"
inputType="checkbox"
checked={showLibsWarning}
label="Display all results"
label="Show warnings for external libraries"
onClick={handleShowLibsWarning}
onChange={() => {}}
/>

Loading…
Cancel
Save