Skip to content
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

Refactor MobileNav for handling mobile title more efficiently #3310

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Rajnish2105
Copy link

@Rajnish2105 Rajnish2105 commented Dec 25, 2024

Refactior: TODO: remove the switch and use a props like mobileTitle

Changes:

  1. I have moved the switch logic to the useWhatPage hook to maintain clean and modular code while ensuring the app's functionality remains intact.
  2. Instead of passing MobileTitle as a prop, I shifted the logic to the useWhatPage hook. This approach provides a cleaner and more optimized solution by deriving the title directly from the function.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

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