diff --git a/squarenotsquare/src/redux/actions/UserActions.js b/squarenotsquare/src/redux/actions/UserActions.js index afb8299..920fd4f 100644 --- a/squarenotsquare/src/redux/actions/UserActions.js +++ b/squarenotsquare/src/redux/actions/UserActions.js @@ -1,5 +1,5 @@ import { squareNav } from "../../navigation/SquareNav"; -import { SQUARE_START } from "../types/SystemTypes"; +import { SQUARE_FINISHED, SQUARE_START } from "../types/UserTypes"; export function squareStartPressed() { return (dispatch) => { @@ -8,4 +8,13 @@ export function squareStartPressed() { type: SQUARE_START }); } +} + +export function squareFinished(score) { + return (dispatch) => { + squareNav('Score'); + dispatch({ + type: SQUARE_FINISHED + }); + } } \ No newline at end of file