@ -155,7 +155,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
} else {
} else {
setContractOptions ( {
setContractOptions ( {
disabled : true ,
disabled : true ,
title : loadType === 'sol' ? 'Select and compile *.sol file to deploy or access a contract.' : < span > When there is a compiled . sol file , < br / > choose the contract to deploy or to use with AtAddress . ' < / span >
title : loadType === 'sol' ? 'Select and compile *.sol file to deploy or access a contract.' : < span > When there is a compiled . sol file , choose the < br / > contract to deploy or to use with AtAddress . ' < / span >
} )
} )
}
}
}
}
@ -266,7 +266,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
placement = { 'right' }
placement = { 'right' }
tooltipClasses = "text-wrap"
tooltipClasses = "text-wrap"
tooltipId = "info-sync-compiled-contract"
tooltipId = "info-sync-compiled-contract"
tooltipText = { < span > Click here to import contracts compiled from an external framework . < br / >
tooltipText = { < span className = "text-left" > Click here to import contracts compiled from an external framework . < br / >
This action is enabled when Remix is connected to an external framework ( hardhat , truffle , foundry ) through remixd . < / span > }
This action is enabled when Remix is connected to an external framework ( hardhat , truffle , foundry ) through remixd . < / span > }
>
>
< button className = "btn d-flex py-0" onClick = { _ = > {
< button className = "btn d-flex py-0" onClick = { _ = > {
@ -277,14 +277,13 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
< / button >
< / button >
< / CustomTooltip > )
< / CustomTooltip > )
: null }
: null }
< / div >
< div className = "udapp_subcontainer" >
< CustomTooltip
< CustomTooltip
placement = { "right" }
placement = { "right" }
tooltipClasses = "text-nowrap"
tooltipClasses = "text-nowrap"
tooltipId = "remixUdappContractNamesTooltip"
tooltipId = "remixUdappContractNamesTooltip"
tooltipText = { contractOptions . title }
tooltipText = { contractOptions . title }
>
>
< div className = "udapp_subcontainer" >
< select ref = { contractsRef } value = { currentContract } onChange = { handleContractChange } className = "udapp_contractNames custom-select" disabled = { contractOptions . disabled } style = { { display : loadType === 'abi' && ! isContractFile ( currentFile ) ? 'none' : 'block' } } >
< select ref = { contractsRef } value = { currentContract } onChange = { handleContractChange } className = "udapp_contractNames custom-select" disabled = { contractOptions . disabled } style = { { display : loadType === 'abi' && ! isContractFile ( currentFile ) ? 'none' : 'block' } } >
{ ( contractList [ currentFile ] || [ ] ) . map ( ( contract , index ) = > {
{ ( contractList [ currentFile ] || [ ] ) . map ( ( contract , index ) = > {
return < option key = { index } value = { contract . alias } >
return < option key = { index } value = { contract . alias } >
@ -292,10 +291,9 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
< / option >
< / option >
} ) }
} ) }
< / select >
< / select >
< / CustomTooltip >
< span className = "py-1" style = { { display : abiLabel.display } } > { abiLabel . content } < / span >
< span className = "py-1" style = { { display : abiLabel.display } } > { abiLabel . content } < / span >
< / div >
< / div >
< div >
< / CustomTooltip >
< div className = "udapp_deployDropdown" >
< div className = "udapp_deployDropdown" >
{ ( ( contractList [ currentFile ] && contractList [ currentFile ] . filter ( contract = > contract ) ) || [ ] ) . length <= 0 ? intl . formatMessage ( { id : 'udapp.noCompiledContracts' , defaultMessage : 'No compiled contracts' } )
{ ( ( contractList [ currentFile ] && contractList [ currentFile ] . filter ( contract = > contract ) ) || [ ] ) . length <= 0 ? intl . formatMessage ( { id : 'udapp.noCompiledContracts' , defaultMessage : 'No compiled contracts' } )
: loadedContractData ? < div >
: loadedContractData ? < div >
@ -343,7 +341,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
< div className = "udapp_orLabel mt-2" style = { { display : loadType === 'abi' && ! isContractFile ( currentFile ) ? 'none' : 'block' } } >
< div className = "udapp_orLabel mt-2" style = { { display : loadType === 'abi' && ! isContractFile ( currentFile ) ? 'none' : 'block' } } >
< FormattedMessage id = 'udapp.or' defaultMessage = 'or' / >
< FormattedMessage id = 'udapp.or' defaultMessage = 'or' / >
< / div >
< / div >
< div className = "udapp_button udapp_atAddressSect " >
< div className = "udapp_button udapp_atAddressSect d-flex justify-content-center " >
< CustomTooltip
< CustomTooltip
placement = { 'top-end' }
placement = { 'top-end' }
tooltipClasses = "text-wrap"
tooltipClasses = "text-wrap"