Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable history button when wallet not connected #11679

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

swkatmask
Copy link
Contributor

@swkatmask swkatmask commented Jun 22, 2024

@guanbinrui guanbinrui merged commit 1b1ebcd into firefly Jul 4, 2024
2 of 5 checks passed
@guanbinrui guanbinrui deleted the fix/disable-history-button branch July 4, 2024 09:58
return <Icons.History onClick={() => setShowHistory((history) => !history)} />
return (
<Icons.History
style={{ cursor: account ? undefined : 'disabled' }}
Copy link
Member

Choose a reason for hiding this comment

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

return (
<Icons.History
style={{ cursor: account ? undefined : 'disabled' }}
disabled
Copy link
Member

Choose a reason for hiding this comment

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

disabled={!!account}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants