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

chore: [DHIS2-18737] Scroll to top when navigating in the app #3947

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

henrikmv
Copy link
Contributor

@henrikmv henrikmv commented Jan 23, 2025

DHIS2-18737:

  • Created the useNavigate function.
  • Added the scrollToTop prop, defaulting to true.
  • Replaced direct history.push calls with the hook.

@henrikmv henrikmv removed the testing label Jan 24, 2025
Copy link

@henrikmv henrikmv marked this pull request as ready for review January 25, 2025 12:29
@henrikmv henrikmv requested a review from a team as a code owner January 25, 2025 12:29
Copy link
Contributor

@simonadomnisoru simonadomnisoru left a comment

Choose a reason for hiding this comment

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

I found 2 places left out in EmptyPrograms and OverflowMenu. Could you replace the history there as well? Thanks!

src/core_modules/capture-core/flow/typeDeclarations.js Outdated Show resolved Hide resolved
src/store/getStore.js Outdated Show resolved Hide resolved
Copy link

sonarqubecloud bot commented Feb 2, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants