Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { useAccountMenuEnabled } from '../../../../selectors/featureFlagControll
const FILLED_ICONS: Partial<Record<TabBarIconKey, IconName>> = {
[TabBarIconKey.Wallet]: IconName.HomeFilled,
[TabBarIconKey.Activity]: IconName.ClockFilled,
[TabBarIconKey.Trending]: IconName.SearchFilled,
[TabBarIconKey.Trending]: IconName.Search,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant FILLED_ICONS entry duplicates base icon value

Low Severity

The FILLED_ICONS entry for TabBarIconKey.Trending now maps to IconName.Search, which is identical to the base icon in ICON_BY_TAB_BAR_ICON_KEY. The fallback ?? baseIcon on line 62 already handles this case, making this entry functionally redundant. Keeping it in a map named FILLED_ICONS is also semantically misleading since it no longer points to a filled variant — a future developer may wonder why an outline icon appears in the "filled" map.

Fix in Cursor Fix in Web

[TabBarIconKey.Rewards]: IconName.MetamaskFoxFilled,
};

Expand Down
Loading