Skip to content

Commit

Permalink
fix tooltip for disabled method call buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Jul 18, 2023
1 parent d737ddc commit 611036f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,6 @@ export function ContractGUI (props: ContractGUIProps) {
className="udapp_contractActionsContainerSingle pt-2"
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}
>
<div
className='d-flex'
onClick={handleActionClick}
Expand All @@ -289,10 +282,17 @@ export function ContractGUI (props: ContractGUIProps) {
data-title={buttonOptions.title}
disabled={(toggleUpgradeImp && !proxyAddress) || props.disabled || (props.inputs !=='' && basicInput === '')}
>
{title}
<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}
>
<div>{title}</div>
</CustomTooltip>
</button>
</div>
</CustomTooltip>
<input
className="form-control"
data-id={
Expand Down

1 comment on commit 611036f

@AnuragNishad12
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey bro @Aniket-Engg .. I need your help whenever i push my changes to this project i get this error
image
Can u please help me ?

Please sign in to comment.