-
Notifications
You must be signed in to change notification settings - Fork 359
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
[SDK] Options to custonize ViewAssets's tabs #5126
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 8b87882 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5126 +/- ##
==========================================
+ Coverage 45.29% 45.30% +0.01%
==========================================
Files 1067 1067
Lines 55341 55358 +17
Branches 3973 3974 +1
==========================================
+ Hits 25068 25082 +14
- Misses 29581 29584 +3
Partials 692 692
*This pull request uses carry forward flags. Click here to find out more.
|
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 don't think we should make this change. It's incredibly niche and if they want this level of customization they should probably be building their own UI. It'll also break as soon as we add another tab to this screen.
packages/thirdweb/src/react/core/hooks/connection/ConnectButtonProps.ts
Outdated
Show resolved
Hide resolved
We were having a discussion here: https://linear.app/thirdweb/issue/CNCT-2036/feedbackfeature-request-on-nfts-tab |
20663a1
to
5486d5e
Compare
5486d5e
to
336eb86
Compare
336eb86
to
f9b8179
Compare
f9b8179
to
782a86a
Compare
782a86a
to
8b87882
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on enhancing the
ConnectButton
component by allowing customization of the asset tab display order in the "View Assets" section. Users can now specify whether to show the "Tokens" or "NFTs" tab first, and an empty array will hide the "View Funds" button.Detailed summary
assetTabs
prop toConnectButton
for customizing asset tab order.ViewAssets
to dynamically render tabs based onassetTabs
prop.DetailsModal
to conditionally display "View Funds" button based onassetTabs
length.