-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix: hide network filter on mUSD tokens view #28673
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -318,12 +318,14 @@ const Tokens = forwardRef<TabRefreshHandle, TokensProps>( | |
| } | ||
| testID={WalletViewSelectorsIDs.TOKENS_CONTAINER} | ||
| > | ||
| <TokenListControlBar | ||
| goToAddToken={goToAddToken} | ||
| showAddToken={!showOnlyMusd} | ||
| hideSort={showOnlyMusd} | ||
| style={isFullView ? tw`px-4 pb-4` : undefined} | ||
| /> | ||
| {!showOnlyMusd && ( | ||
| <TokenListControlBar | ||
| goToAddToken={goToAddToken} | ||
| showAddToken={!showOnlyMusd} | ||
| hideSort={showOnlyMusd} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Redundant props always equal their default valuesLow Severity Inside the Reviewed by Cursor Bugbot for commit fb57af4. Configure here. |
||
| style={isFullView ? tw`px-4 pb-4` : undefined} | ||
| /> | ||
| )} | ||
| {tokenContent} | ||
| <ScamWarningModal | ||
| showScamWarningModal={showScamWarningModal} | ||
|
|
||


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.
Test uses toBeNull instead of not.toBeOnTheScreen
Low Severity
The assertion
expect(queryByTestId('token-list-control-bar')).toBeNull()usestoBeNull()to check element absence. The unit testing guidelines require usingnot.toBeOnTheScreen()for absence checks, as it communicates intent more clearly and aligns with the project's preferred matcher conventions.Triggered by project rule: Unit Testing Guidelines
Reviewed by Cursor Bugbot for commit fb57af4. Configure here.