-
Notifications
You must be signed in to change notification settings - Fork 585
feat: AccountSelector
#3088
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
base: main
Are you sure you want to change the base?
feat: AccountSelector
#3088
Conversation
c5fe4c3
to
ee67e9e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3088 +/- ##
==========================================
+ Coverage 94.73% 94.76% +0.03%
==========================================
Files 518 520 +2
Lines 11947 12017 +70
Branches 1836 1848 +12
==========================================
+ Hits 11318 11388 +70
Misses 629 629 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
311858f
to
b32f31a
Compare
packages/snaps-sdk/src/jsx/components/form/AccountSelector.test.tsx
Outdated
Show resolved
Hide resolved
packages/snaps-sdk/src/jsx/components/form/AccountSelector.test.tsx
Outdated
Show resolved
Hide resolved
{ | ||
name: string(), | ||
hideExternalAccounts: optional(boolean()), | ||
chainIds: optional(array(CaipChainIdStruct)) as unknown as Struct< |
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.
Why does this need a type cast?
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.
0f3aca9
to
23230f6
Compare
23230f6
to
1e12de9
Compare
1e12de9
to
2d2003e
Compare
This PR adds a new component called
AccountSelector
.This component uses the account list of the client to display and select an account. The list can be filtered via the component props.
Progresses: #2810