-
Notifications
You must be signed in to change notification settings - Fork 568
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
feat: AccountSelector
#3088
base: main
Are you sure you want to change the base?
feat: AccountSelector
#3088
Conversation
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
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.88% 94.90% +0.01%
==========================================
Files 506 508 +2
Lines 11123 11162 +39
Branches 1709 1717 +8
==========================================
+ Hits 10554 10593 +39
Misses 569 569 ☔ View full report in Codecov by Sentry. |
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
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