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

ConnectModal support show wallet status #550

Closed
yutingzhao1991 opened this issue Feb 2, 2024 · 0 comments · Fixed by #591
Closed

ConnectModal support show wallet status #550

yutingzhao1991 opened this issue Feb 2, 2024 · 0 comments · Fixed by #591
Assignees
Labels
feature Independent new features help wanted Extra attention is needed

Comments

@yutingzhao1991
Copy link
Collaborator

支持显示钱包是否已经安装,是否有插件版本和二维码:

image

通过判断 wallet 的 hasExtensionInstalled 判断是否有插件以及插件是否已经安装,通过 getQrCode 判断是否可以扫二维码连接。

  • 如果有插件,插件按钮显示,否则不显示。
  • 如果插件没有安装,按钮置灰。如果已安装显示已安装图标。
  • 如果有二维码,显示二维码按钮。
  • 插件已安装情况下点击直接唤起插件连接(和现在逻辑一样),但是如果用户点击二维码按钮,则可以使用二维码连接。

设计稿见:https://www.figma.com/file/uA5FgofzOVulGceri7SGpW/web3%E6%96%B0%E8%AE%BE%E8%AE%A1%E7%A8%BF?type=design&node-id=0%3A6995&mode=design&t=1Cz6HQy8hDJPdGIY-1

@yutingzhao1991 yutingzhao1991 added help wanted Extra attention is needed feature Independent new features labels Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Independent new features help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants