Skip to content

fix: revert the redirection changes #421

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

Copy link

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