diff options
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/Timer/Timer.js (renamed from src/pages/TimerPage/TimerPage.js) | 8 | ||||
-rw-r--r-- | src/pages/Timer/TimerButton/TimerButton.js (renamed from src/pages/TimerPage/Timer/Timer.js) | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/pages/TimerPage/TimerPage.js b/src/pages/Timer/Timer.js index 591eb7b..4b5925f 100644 --- a/src/pages/TimerPage/TimerPage.js +++ b/src/pages/Timer/Timer.js @@ -4,7 +4,7 @@ import { post } from '../../requests'; import Window from "../../components/Window/Window"; import ContentSection from "../../components/ContentSection/ContentSection"; -import Timer from "./Timer/Timer"; +import TimerButton from "./TimerButton/TimerButton"; import SmartList from "../../components/SmartList/SmartList"; import SolutionCard from "../../components/SolutionCard/SolutionCard"; @@ -20,7 +20,7 @@ const useStyles = makeStyles(theme => ({ }, })); -const TimerPage = ({ recentSolutions, setRecentSolutions }) => { +const Timer = ({ recentSolutions, setRecentSolutions }) => { const classes = useStyles(); const user = { @@ -58,7 +58,7 @@ const TimerPage = ({ recentSolutions, setRecentSolutions }) => { and how to make it better! </Typography> </ContentSection> - <Timer registerResult={registerResult} /> + <TimerButton registerResult={registerResult} /> </div> </Window> <Window type="secondary" name="Recent solutions"> @@ -73,4 +73,4 @@ const TimerPage = ({ recentSolutions, setRecentSolutions }) => { }; -export default TimerPage; +export default Timer; diff --git a/src/pages/TimerPage/Timer/Timer.js b/src/pages/Timer/TimerButton/TimerButton.js index 92b153d..56d3084 100644 --- a/src/pages/TimerPage/Timer/Timer.js +++ b/src/pages/Timer/TimerButton/TimerButton.js @@ -12,7 +12,7 @@ const useStyles = makeStyles(theme => ({ }, })); -const Timer = ({ registerResult }) => { +const TimerButton = ({ registerResult }) => { const classes = useStyles(); const SPACE = 32; @@ -116,4 +116,4 @@ const convertTimeToString = timeDelta => { }; -export default Timer; +export default TimerButton; |