Skip to content

Commit b0eccf3

Browse files
committed
[MNY-318] SDK: Remove tabs from token selection ui in SwapWidget (#8501)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `SelectToken` component by simplifying token limit management, improving UI consistency, and refactoring token display logic. It also removes unnecessary tabs and optimizes the selection process for better user experience. ### Detailed summary - Replaced constants `ALL_TOKENS_LIMIT` and `OWNED_TOKENS_LIMIT` with `INITIAL_LIMIT`. - Unified token limit state management into a single `limit` state. - Refactored token fetching and display logic to streamline data handling. - Removed unnecessary tab UI for better clarity. - Simplified the structure of token data handling in `SelectTokenUI`. - Updated the rendering logic for owned and other tokens to improve performance and readability. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **UI Improvements** * Redesigned token selection UI in SwapWidget: removed tab navigation and consolidated token lists into dedicated "Your Tokens" and "Other Tokens" sections for a clearer, more intuitive experience. * **Bug Fixes** * Enhanced search functionality to properly reset token filtering, improving responsiveness. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent f3525c7 commit b0eccf3

File tree

2 files changed

+120
-178
lines changed

2 files changed

+120
-178
lines changed

.changeset/rotten-loops-draw.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Remove tabs from token selection UI in SwapWidget

0 commit comments

Comments
 (0)