Adds a "Go to Top" button on every learning track page.
Enhances user navigation experience by allowing users to quickly return to the top of the page.
Resolves [#451]
Description:
This PR introduces a "Go to Top" button on every learning track page within the DailyCode platform. This feature enhances the user experience by providing a convenient way for users to quickly return to the top of the page.
Implementation Details:
Added a ScrollToTopWrapper component using the react-scroll-to-top library.
Wrapped the track pages with the ScrollToTopWrapper component to enable the "Go to Top" functionality.
Before:
After:
Checklist before requesting a review
[x] I have performed a self-review of my code.
[x] I assure there is no similar/duplicate pull request regarding the same issue.
PR Fixes:
Resolves [#451]
Description:
This PR introduces a "Go to Top" button on every learning track page within the DailyCode platform. This feature enhances the user experience by providing a convenient way for users to quickly return to the top of the page.
Implementation Details:
Added a
ScrollToTopWrapper
component using thereact-scroll-to-top
library. Wrapped the track pages with the ScrollToTopWrapper component to enable the "Go to Top" functionality.Before:
After:
Checklist before requesting a review
[x] I have performed a self-review of my code.
[x] I assure there is no similar/duplicate pull request regarding the same issue.