pull/3868/head
lianahus 1 year ago committed by Aniket
parent 370e4c0daa
commit 438df5c586
  1. 32
      libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx

@ -315,23 +315,21 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
tooltipId="remixUdappContractNamesTooltip"
tooltipText={contractOptions.title}
>
<div id="udappcontractNamesWrapper" className="w-100">
<select ref={contractsRef}
value={currentContract}
name={contractOptions.title.toString()}
onChange={handleContractChange}
className="udapp_contractNames custom-select"
disabled={contractOptions.disabled}
style={{ display: loadType === 'abi' && !isContractFile(currentFile) ? 'none' : 'block', pointerEvents: contractOptions.disabled ? 'none' : 'auto' }}
>
<option value='' disabled hidden>No compiled contracts</option>
{(contractList[currentFile] || []).map((contract, index) => {
return <option key={index} value={contract.alias}>
{contract.alias} - {contract.file}
</option>
})}
</select>
</div>
<select ref={contractsRef}
value={currentContract}
name={contractOptions.title.toString()}
onChange={handleContractChange}
className="udapp_contractNames w-100 custom-select"
disabled={contractOptions.disabled}
style={{ display: loadType === 'abi' && !isContractFile(currentFile) ? 'none' : 'block', pointerEvents: contractOptions.disabled ? 'none' : 'auto' }}
>
<option value='' disabled hidden>No compiled contracts</option>
{(contractList[currentFile] || []).map((contract, index) => {
return <option key={index} value={contract.alias}>
{contract.alias} - {contract.file}
</option>
})}
</select>
</CustomTooltip>
<span className="py-1" style={{ display: abiLabel.display }}>{abiLabel.content}</span>
</div>

Loading…
Cancel
Save