fix linting

pull/5563/head
aniket-engg 2 months ago committed by Aniket
parent 72503873c9
commit 7ecddc0133
  1. 7
      libs/remix-ui/run-tab/src/lib/components/environment.tsx

@ -103,7 +103,7 @@ export function EnvironmentUI(props: EnvironmentProps) {
await props.runTabPlugin.call('fileManager', 'remove', `.states/${context}/state.json`) await props.runTabPlugin.call('fileManager', 'remove', `.states/${context}/state.json`)
// If there are pinned contracts, delete pinned contracts folder // If there are pinned contracts, delete pinned contracts folder
const isPinnedContracts = await props.runTabPlugin.call('fileManager', 'exists', `.deploys/pinned-contracts/${context}`) const isPinnedContracts = await props.runTabPlugin.call('fileManager', 'exists', `.deploys/pinned-contracts/${context}`)
if(isPinnedContracts) await props.runTabPlugin.call('fileManager', 'remove', `.deploys/pinned-contracts/${context}`) if (isPinnedContracts) await props.runTabPlugin.call('fileManager', 'remove', `.deploys/pinned-contracts/${context}`)
props.runTabPlugin.call('notification', 'toast', `VM state reset successfully.`) props.runTabPlugin.call('notification', 'toast', `VM state reset successfully.`)
}, },
intl.formatMessage({ id: 'udapp.cancel' }), intl.formatMessage({ id: 'udapp.cancel' }),
@ -112,7 +112,6 @@ export function EnvironmentUI(props: EnvironmentProps) {
} else props.runTabPlugin.call('notification', 'toast', `VM state doesn't exist for selected environment.`) } else props.runTabPlugin.call('notification', 'toast', `VM state doesn't exist for selected environment.`)
} }
const isL2 = (providerDisplayName: string) => providerDisplayName && (providerDisplayName.startsWith('L2 - Optimism') || providerDisplayName.startsWith('L2 - Arbitrum')) const isL2 = (providerDisplayName: string) => providerDisplayName && (providerDisplayName.startsWith('L2 - Optimism') || providerDisplayName.startsWith('L2 - Arbitrum'))
return ( return (
<div className="udapp_crow"> <div className="udapp_crow">
@ -129,10 +128,10 @@ export function EnvironmentUI(props: EnvironmentProps) {
</a> </a>
</CustomTooltip> </CustomTooltip>
{ currentProvider && currentProvider.isVM && isSaveEvmStateChecked && <CustomTooltip placement={'auto-end'} tooltipClasses="text-wrap" tooltipId="forkStatetooltip" tooltipText={<FormattedMessage id="udapp.forkStateTitle" />}> { currentProvider && currentProvider.isVM && isSaveEvmStateChecked && <CustomTooltip placement={'auto-end'} tooltipClasses="text-wrap" tooltipId="forkStatetooltip" tooltipText={<FormattedMessage id="udapp.forkStateTitle" />}>
<i className="udapp_infoDeployAction ml-2 fas fa-code-branch" style={{cursor: 'pointer'}} onClick={forkState}></i> <i className="udapp_infoDeployAction ml-2 fas fa-code-branch" style={{ cursor: 'pointer' }} onClick={forkState}></i>
</CustomTooltip> } </CustomTooltip> }
{ currentProvider && currentProvider.isVM && isSaveEvmStateChecked && <CustomTooltip placement={'auto-end'} tooltipClasses="text-wrap" tooltipId="resetVMStatetooltip" tooltipText={<FormattedMessage id="udapp.resetVmStateTooltip" />}> { currentProvider && currentProvider.isVM && isSaveEvmStateChecked && <CustomTooltip placement={'auto-end'} tooltipClasses="text-wrap" tooltipId="resetVMStatetooltip" tooltipText={<FormattedMessage id="udapp.resetVmStateTooltip" />}>
<i className="udapp_infoDeployAction ml-2 fas fa-refresh" style={{cursor: 'pointer'}} onClick={resetVmState}></i> <i className="udapp_infoDeployAction ml-2 fas fa-refresh" style={{ cursor: 'pointer' }} onClick={resetVmState}></i>
</CustomTooltip> } </CustomTooltip> }
</label> </label>
<div className="udapp_environment" data-id={`selected-provider-${currentProvider && currentProvider.name}`}> <div className="udapp_environment" data-id={`selected-provider-${currentProvider && currentProvider.name}`}>

Loading…
Cancel
Save