Skip to content

Commit 021ad51

Browse files
committed
Refactoring for better coherence.
1 parent 71e7bdb commit 021ad51

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

page/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { DatePage } from 'routes/datepage';
88
import { MapPage } from 'routes/mappage';
99
import { ListPage } from 'routes/listpage';
1010
import { FilterContext } from 'contexts/FilterContext';
11-
import ScrollToTopButton from './components/ScrollToTopButton/ScrollToTopButton';
11+
import { ScrollToTopButton } from './components/ScrollToTopButton/ScrollToTopButton';
1212

1313
const App = () => {
1414
// TODO: DRY

page/src/components/ScrollToTopButton/ScrollToTopButton.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import 'styles/ScrollToTopButton.css';
33

4-
const ScrollToTopButton = () => {
4+
export const ScrollToTopButton = () => {
55
const [isVisible, setIsVisible] = useState(false);
66

77
const toggleVisibility = () => {
@@ -35,5 +35,3 @@ const ScrollToTopButton = () => {
3535
)
3636
);
3737
};
38-
39-
export default ScrollToTopButton;

0 commit comments

Comments
 (0)