linting fix

pull/4845/head
aniket-engg 6 months ago committed by Aniket
parent cb47bb6e71
commit 8ea90653de
  1. 56
      libs/remix-ui/run-tab/src/lib/components/solScanTable.tsx
  2. 2
      libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx

@ -12,35 +12,35 @@ export function SolScanTable(props: SolScanTableProps) {
return (
<>
<p>Scanning successful! <b>{scanDetails.length} warnings </b> found for file: <b>{fileName}</b></p>
<p>See the warning details below. For more details, <a href="https://solidityscan.com/signup" target='blank'>Sign up with SolidityScan</a></p>
<table className="table table-bordered table-hover">
<thead>
<tr>
<td scope="col">NAME</td>
<td scope="col">SEVERITY</td>
<td scope="col">CONFIDENCE</td>
<td scope="col">DESCRIPTION</td>
<td scope="col">REMEDIATION</td>
</tr>
</thead>
<tbody>
{
Array.from(scanDetails, (template) => {
return (
<tr key={template.template_details.issue_id}>
<td scope="col">{template.template_details.issue_name}</td>
<td scope="col">{template.template_details.issue_severity}</td>
<td scope="col">{template.template_details.issue_confidence}</td>
<td scope="col">{parse(template.template_details.static_issue_description)}</td>
<td scope="col">{template.template_details.issue_remediation ? parse(template.template_details.issue_remediation) : 'Not Available' }</td>
</tr>
)
})
}
<p>Scanning successful! <b>{scanDetails.length} warnings </b> found for file: <b>{fileName}</b></p>
<p>See the warning details below. For more details, <a href="https://solidityscan.com/signup" target='blank'>Sign up with SolidityScan</a></p>
<table className="table table-bordered table-hover">
<thead>
<tr>
<td scope="col">NAME</td>
<td scope="col">SEVERITY</td>
<td scope="col">CONFIDENCE</td>
<td scope="col">DESCRIPTION</td>
<td scope="col">REMEDIATION</td>
</tr>
</thead>
<tbody>
{
Array.from(scanDetails, (template) => {
return (
<tr key={template.template_details.issue_id}>
<td scope="col">{template.template_details.issue_name}</td>
<td scope="col">{template.template_details.issue_severity}</td>
<td scope="col">{template.template_details.issue_confidence}</td>
<td scope="col">{parse(template.template_details.static_issue_description)}</td>
<td scope="col">{template.template_details.issue_remediation ? parse(template.template_details.issue_remediation) : 'Not Available' }</td>
</tr>
)
})
}
</tbody>
</table>
</tbody>
</table>
</>
)
}

@ -406,7 +406,7 @@ export function UniversalDappUI(props: UdappProps) {
)}
<CustomTooltip placement="top" tooltipClasses="text-nowrap" tooltipId="udapp_udappSolScanTooltip" tooltipText={<FormattedMessage id="udapp.solScan.iconTooltip" />}>
<i className="fas fa-qrcode btn btn-sm p-0" onClick={askPermissionToScan}></i>
</CustomTooltip>
</CustomTooltip>
</div>
{ props.isPinnedContract && props.instance.pinnedAt ? (
<div className="d-flex" data-id="instanceContractPinnedAt">

Loading…
Cancel
Save