|
|
|
@ -274,20 +274,25 @@ export function ContractGUI (props: ContractGUIProps) { |
|
|
|
|
style={{ display: toggleContainer ? "none" : "flex" }} |
|
|
|
|
>
|
|
|
|
|
<CustomTooltip |
|
|
|
|
delay={0} |
|
|
|
|
placement={"right"} |
|
|
|
|
tooltipClasses="text-wrap" |
|
|
|
|
tooltipId="remixUdappInstanceButtonTooltip" |
|
|
|
|
tooltipText={toggleUpgradeImp && !proxyAddress ? 'Proxy address cannot be empty' : (props.inputs !=='' && basicInput === '') ? 'Input required' : buttonOptions.title} |
|
|
|
|
> |
|
|
|
|
<button |
|
|
|
|
<div |
|
|
|
|
className='d-flex' |
|
|
|
|
onClick={handleActionClick} |
|
|
|
|
className={`udapp_instanceButton ${props.widthClass} btn btn-sm ${buttonOptions.classList}`} |
|
|
|
|
> |
|
|
|
|
<button |
|
|
|
|
className={`udapp_instanceButton text-nowrap overflow-hidden text-truncate ${props.widthClass} btn btn-sm ${buttonOptions.classList}`} |
|
|
|
|
data-id={buttonOptions.dataId} |
|
|
|
|
data-title={buttonOptions.title} |
|
|
|
|
disabled={(toggleUpgradeImp && !proxyAddress) || props.disabled || (props.inputs !=='' && basicInput === '')} |
|
|
|
|
> |
|
|
|
|
<div className='text-nowrap overflow-hidden text-truncate'>{title}</div> |
|
|
|
|
{title} |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
<input |
|
|
|
|
className="form-control" |
|
|
|
@ -400,16 +405,19 @@ export function ContractGUI (props: ContractGUIProps) { |
|
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
|
tooltipId="remixUdappInstanceButtonTooltip" |
|
|
|
|
tooltipText={buttonOptions.title} |
|
|
|
|
> |
|
|
|
|
<div |
|
|
|
|
onClick={handleExpandMultiClick} |
|
|
|
|
> |
|
|
|
|
<button |
|
|
|
|
type="button" |
|
|
|
|
onClick={handleExpandMultiClick} |
|
|
|
|
data-id={buttonOptions.dataId} |
|
|
|
|
className={`udapp_instanceButton ${buttonOptions.classList}`} |
|
|
|
|
disabled={props.disabled} |
|
|
|
|
disabled={props.disabled || (props.inputs !=='' && basicInput === '')} |
|
|
|
|
> |
|
|
|
|
{buttonOptions.content} |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|