From 976c0c7d90784a1ca66947e40fb0c3cead01c8d1 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Wed, 3 Aug 2022 23:25:40 -0500 Subject: [PATCH] square start pressed user action creator --- squarenotsquare/src/redux/actions/UserActions.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/squarenotsquare/src/redux/actions/UserActions.js b/squarenotsquare/src/redux/actions/UserActions.js index e69de29..afb8299 100644 --- a/squarenotsquare/src/redux/actions/UserActions.js +++ b/squarenotsquare/src/redux/actions/UserActions.js @@ -0,0 +1,11 @@ +import { squareNav } from "../../navigation/SquareNav"; +import { SQUARE_START } from "../types/SystemTypes"; + +export function squareStartPressed() { + return (dispatch) => { + squareNav('Game'); + dispatch({ + type: SQUARE_START + }); + } +} \ No newline at end of file