Commit 7dae5b07 authored by tom goriunov's avatar tom goriunov Committed by GitHub

`Connect` button tooltip positioned in the corner (#2710)

Fixes #2708
parent 9f3b4060
...@@ -39,25 +39,27 @@ const UserWalletButton = ({ size, variant, isPending, isAutoConnectDisabled, add ...@@ -39,25 +39,27 @@ const UserWalletButton = ({ size, variant, isPending, isAutoConnectDisabled, add
return ( return (
<Tooltip <Tooltip
content={ <span>Connect your wallet<br/>to Blockscout for<br/>full-featured access</span> } content="Connect your wallet to Blockscout for full-featured access"
disabled={ isMobile || Boolean(address) } disabled={ isMobile || Boolean(address) }
openDelay={ 500 } openDelay={ 500 }
disableOnMobile disableOnMobile
> >
<Button <span>
ref={ ref } <Button
size={ size } ref={ ref }
variant={ variant } size={ size }
selected={ Boolean(address) } variant={ variant }
highlighted={ isAutoConnectDisabled } selected={ Boolean(address) }
px={{ base: 2.5, lg: 3 }} highlighted={ isAutoConnectDisabled }
fontWeight={ address ? 700 : 600 } px={{ base: 2.5, lg: 3 }}
loading={ isPending } fontWeight={ address ? 700 : 600 }
loadingText={ isMobile ? undefined : 'Connecting' } loading={ isPending }
{ ...rest } loadingText={ isMobile ? undefined : 'Connecting' }
> { ...rest }
{ content } >
</Button> { content }
</Button>
</span>
</Tooltip> </Tooltip>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment