Skip to content

Conversation

@rupato-deriv
Copy link
Contributor

This pull request simplifies the useMobileMenuConfig hook in src/components/layout/header/mobile-menu/use-mobile-menu-config.tsx by removing unused imports and redundant logic related to feature flags and wallet accounts. It also updates the account settings URL logic to use a static route.

Code cleanup and simplification:

  • Removed the unused import useGrowthbookGetFeatureValue and its associated logic for retrieving feature flag values. [1] [2]
  • Deleted the has_wallet check and the getRedirectUrl function, which dynamically determined the redirect URL based on the user's country and wallet status.

Static URL update:

  • Updated the href property for the "Account Settings" menu item to use a static route (standalone_routes.account_settings) instead of relying on the removed getRedirectUrl function.

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2025

Preview Link: https://Rupato-Revert--chang.bot-65f.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant