File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
components/ScrollToTopButton Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { DatePage } from 'routes/datepage';
8
8
import { MapPage } from 'routes/mappage' ;
9
9
import { ListPage } from 'routes/listpage' ;
10
10
import { FilterContext } from 'contexts/FilterContext' ;
11
- import ScrollToTopButton from './components/ScrollToTopButton/ScrollToTopButton' ;
11
+ import { ScrollToTopButton } from './components/ScrollToTopButton/ScrollToTopButton' ;
12
12
13
13
const App = ( ) => {
14
14
// TODO: DRY
Original file line number Diff line number Diff line change 1
1
import React , { useState , useEffect } from 'react' ;
2
2
import 'styles/ScrollToTopButton.css' ;
3
3
4
- const ScrollToTopButton = ( ) => {
4
+ export const ScrollToTopButton = ( ) => {
5
5
const [ isVisible , setIsVisible ] = useState ( false ) ;
6
6
7
7
const toggleVisibility = ( ) => {
@@ -35,5 +35,3 @@ const ScrollToTopButton = () => {
35
35
)
36
36
) ;
37
37
} ;
38
-
39
- export default ScrollToTopButton ;
You can’t perform that action at this time.
0 commit comments