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

[Feature Request] 连接弹窗支持灵活控制 #729

Open
jeasonstudio opened this issue Mar 27, 2024 · 2 comments
Open

[Feature Request] 连接弹窗支持灵活控制 #729

jeasonstudio opened this issue Mar 27, 2024 · 2 comments

Comments

@jeasonstudio
Copy link
Collaborator

Background

许多 dapp 在 connect wallet 之前需要勾选用户协议(一般是需要配合后端的 dapp,也就是 connect 后紧接着要 sign),需要想办法能够支持这种流程,或者给出示例:
screenshot-s5fnNrwL@2x

https://kyberswap.com/

Proposal

考虑 Wallet 支持 disabled 属性,通过示例的方式提供

Additional context

Nothing.

@yutingzhao1991
Copy link
Collaborator

实现两个 feature 应该可以支持类似的需求:

  • ConnectModal 新增一个 disabled: boolean 属性,支持禁用所有钱包。
  • ConnectModal 新增一个 walletListPrefixContent: React.ReactNode 属性可以自定义钱包列表前面的内容。

@jeasonstudio
Copy link
Collaborator Author

放到签名流程?

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

No branches or pull requests

2 participants