From b3e2b3f59424da7a61e1b09595d1f1e447c3a31a Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Mon, 6 Jan 2020 21:10:48 +0300 Subject: Create initial TimerPage component Show last 5 results --- src/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 5268b1e..07c50bc 100644 --- a/src/index.js +++ b/src/index.js @@ -7,7 +7,7 @@ import { ThemeProvider, makeStyles } from '@material-ui/core/styles'; import theme from "./theme"; import Header from './components/Header/Header'; -import Timer from './components/Timer/Timer'; +import TimerPage from "./components/TimerPage/TimerPage"; import Scoreboard from "./components/Scoreboard/Scoreboard"; @@ -21,13 +21,19 @@ const useStyles = makeStyles(theme => ({ const App = () => { const [page, setPage] = useState('app'); + const [recentSolutions, setRecentSolutions] = useState([]); const classes = useStyles(); const getPageComponent = page => { switch (page) { case 'app': - return (); + return ( + + ); case 'scoreboard': return (); default: -- cgit v1.2.3