From 4af2ed65fa1b85c53afcf52a6a15acab2c26b6f6 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sat, 6 Aug 2022 16:56:10 -0500 Subject: [PATCH] connect highscores button --- squarenotsquare/src/screens/Home.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/squarenotsquare/src/screens/Home.js b/squarenotsquare/src/screens/Home.js index 684dcad..512ef1d 100644 --- a/squarenotsquare/src/screens/Home.js +++ b/squarenotsquare/src/screens/Home.js @@ -8,6 +8,7 @@ import Metrics from "../themes/Metrics"; import Slider from "../components/Slider"; import { useDispatch } from "react-redux"; import {squareStartPressed} from '../redux/actions/UserActions'; +import { goToScores } from "../redux/actions/SystemActions"; function Home(){ const dispatch = useDispatch(); @@ -20,6 +21,10 @@ function Home(){ dispatch(squareStartPressed()); } + function onPressHighScores(){ + dispatch(goToScores()); + } + const now = new Date(Date.now()); return ( @@ -54,7 +59,10 @@ function Home(){ - + High Scores