-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Sort receive accounts in swap section #16265
base: develop
Are you sure you want to change the base?
Conversation
🚀 Expo preview is ready!
|
const accountTypeOrder: Record<AccountType, number> = { | ||
normal: 0, | ||
ledger: 1, | ||
legacy: 2, | ||
imported: 3, | ||
segwit: 4, | ||
coinjoin: 5, | ||
taproot: 6, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess Bitcoiners will not be happy to have legacy
accounts before segwit
and taproot
I would expect something like:
- normal (BTC, ETH, SOL,...)
- taproot (BTC)
- segwit (BTC)
- coinjoin (BTC)
- ledger (ETH, SOL)
- legacy (BTC, ETH)
- imported (??? mobile)
Please someone confirm @hynek-jina @marekrjpolak
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we already have to have some ordering in Suite because it logically orders accounts in sidebar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Sort accounts by account type and account index
Related Issue
Resolve #14879
Screenshots: