-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
refactor(trending): use MMDS HeaderStandard #29707
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
Changes from all commits
3bfd0f2
60f8bea
8d03523
030a1cd
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 |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| import React, { useRef, useState, useCallback, useEffect } from 'react'; | ||
| import { HeaderStandard } from '@metamask/design-system-react-native'; | ||
| import { StyleSheet, ScrollView } from 'react-native'; | ||
| import BottomSheet, { | ||
| BottomSheetRef, | ||
| } from '../../../../../component-library/components/BottomSheets/BottomSheet'; | ||
| import HeaderCompactStandard from '../../../../../component-library/components-temp/HeaderCompactStandard'; | ||
| import Icon, { | ||
| IconName, | ||
| IconSize, | ||
|
|
@@ -115,7 +115,7 @@ const TrendingTokenNetworkBottomSheet: React.FC< | |
| onClose={handleSheetClose} | ||
| testID="trending-token-network-bottom-sheet" | ||
| > | ||
| <HeaderCompactStandard | ||
| <HeaderStandard | ||
|
Contributor
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. Close button may silently disappear in bottom sheetsHigh Severity The old Additional Locations (2)Reviewed by Cursor Bugbot for commit 3bfd0f2. Configure here. |
||
| title={strings('trending.networks')} | ||
| onClose={handleClose} | ||
| closeButtonProps={{ testID: 'close-button' }} | ||
|
|
||


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.
Stale HeaderCompactStandard mock is now dead code
Low Severity
The
jest.mockforHeaderCompactStandard(lines 74–123) is now dead code. SinceTrendingListHeaderwas changed to importHeaderStandardfrom@metamask/design-system-react-nativeinstead ofHeaderCompactStandardfromcomponents-temp, this ~50-line mock block is never exercised during any test in the file. It adds maintenance burden and could confuse future contributors into thinking the mock's hardcodedtestIDvalues (e.g.header-back-button,header-title) are still relevant.Reviewed by Cursor Bugbot for commit 030a1cd. Configure here.