diff options
Diffstat (limited to 'frontend/src/containers/GameBrowser/actions.js')
-rw-r--r-- | frontend/src/containers/GameBrowser/actions.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/src/containers/GameBrowser/actions.js b/frontend/src/containers/GameBrowser/actions.js new file mode 100644 index 00000000..376973b4 --- /dev/null +++ b/frontend/src/containers/GameBrowser/actions.js @@ -0,0 +1,16 @@ +import { NEW_GAME, JOIN_GAME, CREATE_GAME } from './constants' + +export const newGame = (game) => ({ + type: NEW_GAME, + game +}) + +export const joinGame = (id) => ({ + type: JOIN_GAME, + id +}) + +export const createGame = (name) => ({ + type: CREATE_GAME, + name +}) |