mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Missed a bunch of semicolons
This commit is contained in:
parent
eadac8f89c
commit
a39943559e
@ -25,7 +25,7 @@ class ChessBoard extends React.Component {
|
|||||||
|
|
||||||
this.channel.on("game_update", data => {
|
this.channel.on("game_update", data => {
|
||||||
store.dispatch(setGame(data));
|
store.dispatch(setGame(data));
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getBoard() {
|
getBoard() {
|
||||||
|
|||||||
@ -7,27 +7,27 @@ export const setPlayer = (player) => {
|
|||||||
return {
|
return {
|
||||||
type: SET_PLAYER,
|
type: SET_PLAYER,
|
||||||
player: player
|
player: player
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
export const setGame = (data) => {
|
export const setGame = (data) => {
|
||||||
return {
|
return {
|
||||||
type: SET_GAME,
|
type: SET_GAME,
|
||||||
board: data.board,
|
board: data.board,
|
||||||
turn: data.turn
|
turn: data.turn
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
export const setGameId = (gameId) => {
|
export const setGameId = (gameId) => {
|
||||||
return {
|
return {
|
||||||
type: SET_GAME_ID,
|
type: SET_GAME_ID,
|
||||||
gameId: gameId
|
gameId: gameId
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
export const selectPiece = (coords) => {
|
export const selectPiece = (coords) => {
|
||||||
return {
|
return {
|
||||||
type: SELECT_PIECE,
|
type: SELECT_PIECE,
|
||||||
coords: coords
|
coords: coords
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user