-
Notifications
You must be signed in to change notification settings - Fork 392
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: percentage bage ui & swapEnableRecipientAddress change to settings ok-34479 ok-34482 #6383
Conversation
Signed-off-by: 王山栋 <jelly@onekey.so>
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
Caution Review failedThe pull request is closed. 总览变更概述这次拉取请求主要涉及交换(Swap)功能的状态管理和用户界面调整。核心变更包括:移除了专门的收款地址启用原子(atom),改为在全局设置中管理此状态;优化了报价排序逻辑;调整了组件的状态获取方式。 变更
代码流程图sequenceDiagram
participant Settings as 全局设置
participant SwapContext as 交换上下文
participant UI as 用户界面
Settings->>SwapContext: 提供 swapEnableRecipientAddress
SwapContext-->>UI: 根据设置决定收款地址显示
UI->>Settings: 更新收款地址设置
这个序列图展示了新的状态管理流程:设置直接影响交换上下文和用户界面,简化了状态控制。 Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
swapEnableRecipientAddress
,用于在交换过程中启用接收地址。