Commit 54175e69 authored by Max Alekseenko's avatar Max Alekseenko

fix rewards button tooltip

parent 0f8e6b1d
...@@ -24,7 +24,7 @@ const RewardsButton = ({ variant = 'header', size }: Props) => { ...@@ -24,7 +24,7 @@ const RewardsButton = ({ variant = 'header', size }: Props) => {
textAlign="center" textAlign="center"
padding={ 2 } padding={ 2 }
openDelay={ 500 } openDelay={ 500 }
isDisabled={ isMobile } isDisabled={ isMobile || isLoading || Boolean(apiToken) }
width="150px" width="150px"
> >
<Button <Button
...@@ -34,6 +34,7 @@ const RewardsButton = ({ variant = 'header', size }: Props) => { ...@@ -34,6 +34,7 @@ const RewardsButton = ({ variant = 'header', size }: Props) => {
as={ apiToken ? LinkInternal : 'button' } as={ apiToken ? LinkInternal : 'button' }
{ ...(apiToken ? { href: route({ pathname: '/account/rewards' }) } : {}) } { ...(apiToken ? { href: route({ pathname: '/account/rewards' }) } : {}) }
onClick={ apiToken ? undefined : openLoginModal } onClick={ apiToken ? undefined : openLoginModal }
onFocus={ e => e.preventDefault() } // eslint-disable-line
fontSize="sm" fontSize="sm"
size={ size } size={ size }
px={ 2.5 } px={ 2.5 }
......
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