pull/4896/head
yann300 6 months ago committed by Aniket
parent c70fdde94e
commit 796709ff94
  1. 27
      libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx

@ -374,6 +374,7 @@ export function ContractDropdownUI(props: ContractDropdownProps) {
evmVersion = JSON.parse(loadedContractData.metadata).settings.evmVersion evmVersion = JSON.parse(loadedContractData.metadata).settings.evmVersion
} }
} catch (err) {} } catch (err) {}
console.log('current file', currentFile)
return ( return (
<div className="udapp_container mb-2" data-id="contractDropdownContainer"> <div className="udapp_container mb-2" data-id="contractDropdownContainer">
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
@ -392,23 +393,23 @@ export function ContractDropdownUI(props: ContractDropdownProps) {
</label> </label>
)} )}
{props.remixdActivated ? ( {props.remixdActivated ? (
<CustomTooltip <CustomTooltip
placement={'right'} placement={'right'}
tooltipClasses="text-wrap text-left" tooltipClasses="text-wrap text-left"
tooltipId="info-sync-compiled-contract" tooltipId="info-sync-compiled-contract"
tooltipText={ tooltipText={
<span className="text-left"> <span className="text-left">
<FormattedMessage id="udapp.infoSyncCompiledContractTooltip" values={{ br: <br /> }} /> <FormattedMessage id="udapp.infoSyncCompiledContractTooltip" values={{ br: <br /> }} />
</span> </span>
} }
> >
<i style={{ cursor: 'pointer' }} onClick={(_) => { <i style={{ cursor: 'pointer' }} onClick={(_) => {
props.syncContracts() props.syncContracts()
_paq.push(['trackEvent', 'udapp', 'syncContracts', compilationSource ? compilationSource : 'compilationSourceNotYetSet']) _paq.push(['trackEvent', 'udapp', 'syncContracts', compilationSource ? compilationSource : 'compilationSourceNotYetSet'])
}} className="udapp_syncFramework udapp_icon fa fa-refresh" aria-hidden="true"></i> }} className="udapp_syncFramework udapp_icon fa fa-refresh" aria-hidden="true"></i>
</CustomTooltip> </CustomTooltip>
) : null} ) : null}
</div> </div>
</div> </div>
<div className="udapp_subcontainer"> <div className="udapp_subcontainer">
<CustomTooltip placement={'auto-end'} tooltipClasses="text-nowrap text-left" tooltipId="remixUdappContractNamesTooltip" tooltipText={contractOptions.title}> <CustomTooltip placement={'auto-end'} tooltipClasses="text-nowrap text-left" tooltipId="remixUdappContractNamesTooltip" tooltipText={contractOptions.title}>

Loading…
Cancel
Save