|
|
@ -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) => { |
|
|
@ -9,3 +9,12 @@ export function squareStartPressed() { |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export function squareFinished(score) { |
|
|
|
return (dispatch) => { |
|
|
|
squareNav('Score'); |
|
|
|
dispatch({ |
|
|
|
type: SQUARE_FINISHED |
|
|
|
}); |
|
|
|
} |
|
|
|
} |