-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
Add Scroll to Top button to improve page navigation. #1266
Conversation
Sorry for the lack of attention. I just refactored the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
After analyzed it deeply, I found two last things to change to keep consistency :).
After that I will approve and merge your PR.
page/src/App.jsx
Outdated
@@ -9,26 +8,27 @@ import { DatePage } from 'routes/datepage'; | |||
import { MapPage } from 'routes/mappage'; | |||
import { ListPage } from 'routes/listpage'; | |||
import { FilterContext } from 'contexts/FilterContext'; | |||
import ScrollToTopButton from './components/ScrollToTopButton/ScrollToTopButton'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import ScrollToTopButton from './components/ScrollToTopButton/ScrollToTopButton'; | |
import { ScrollToTopButton } from './components/ScrollToTopButton/ScrollToTopButton'; |
import React, { useState, useEffect } from 'react'; | ||
import 'styles/ScrollToTopButton.css'; | ||
|
||
const ScrollToTopButton = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const ScrollToTopButton = () => { | |
export const ScrollToTopButton = () => { |
); | ||
}; | ||
|
||
export default ScrollToTopButton; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export default ScrollToTopButton; |
Just made the suggested changes. Hope it is all good now. |
Thanks! :-) |
Hi, i made a scroll-to-top button to improve navigation. This is my first contribution to a real open source project and hope it is good enough.