From a775800acdad9d9ac9e3ebdb9aba001e8530892c Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 3 Jun 2024 21:32:17 +0530 Subject: [PATCH] linting fix --- .../src/lib/components/solScanTable.tsx | 56 +++++++++---------- .../src/lib/components/universalDappUI.tsx | 24 ++++---- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/components/solScanTable.tsx b/libs/remix-ui/run-tab/src/lib/components/solScanTable.tsx index 83e16ce0fa..45d55c9e2d 100644 --- a/libs/remix-ui/run-tab/src/lib/components/solScanTable.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/solScanTable.tsx @@ -6,33 +6,33 @@ interface SolScanTableProps { } export function SolScanTable(props: SolScanTableProps) { - const {scanDetails} = props + const { scanDetails } = props - return ( - - - - - - - - - - - { - Array.from(scanDetails, (template) => { - return ( - - - - - - - ) - }) - } - - -
IDNAMESEVERITYDESCRIPTION
{template.template_details.issue_id}{template.template_details.issue_name}{template.template_details.issue_severity}{template.template_details.static_issue_description}
- ) + return ( + + + + + + + + + + + { + Array.from(scanDetails, (template) => { + return ( + + + + + + + ) + }) + } + + +
IDNAMESEVERITYDESCRIPTION
{template.template_details.issue_id}{template.template_details.issue_name}{template.template_details.issue_severity}{template.template_details.static_issue_description}
+ ) } diff --git a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx index 2d6fb253b7..7992fe8bb5 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -227,13 +227,13 @@ export function UniversalDappUI(props: UdappProps) { const filePath = `.workspaces/${fileName}` const file = await props.plugin.call('fileManager', 'readFile', filePath) - const urlResponse = await axios.post(`https://solidityscan.remixproject.org/uploadFile`, { file, fileName}) + const urlResponse = await axios.post(`https://solidityscan.remixproject.org/uploadFile`, { file, fileName }) if (urlResponse.data.status === 'success') { const ws = new WebSocket('wss://solidityscan.remixproject.org/solidityscan') ws.addEventListener('error', console.error); - + ws.addEventListener('open', async (event) => { await props.plugin.call('notification', 'toast', 'Initiating scan...') }) @@ -246,14 +246,14 @@ export function UniversalDappUI(props: UdappProps) { const reqToInitScan = { "action": "message", "payload": { - "type": "private_project_scan_initiate", - "body": { - "file_urls": [ - urlResponse.data.result.url - ], - "project_name": "RemixProject", - "project_type": "new" - } + "type": "private_project_scan_initiate", + "body": { + "file_urls": [ + urlResponse.data.result.url + ], + "project_name": "RemixProject", + "project_type": "new" + } } } ws.send(JSON.stringify(reqToInitScan)) @@ -273,7 +273,7 @@ export function UniversalDappUI(props: UdappProps) { console.log('data.payload--->', data.payload) const url = data.payload.scan_details.link - const {data: scanData} = await axios.post('https://solidityscan.remixproject.org/downloadResult', { url }) + const { data: scanData } = await axios.post('https://solidityscan.remixproject.org/downloadResult', { url }) const scanDetails: Record[] = scanData.scan_report.multi_file_scan_details const modal: AppModal = { @@ -284,7 +284,7 @@ export function UniversalDappUI(props: UdappProps) { } await props.plugin.call('notification', 'modal', modal) } - + }) } }