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 => {
|
||||
store.dispatch(setGame(data));
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
getBoard() {
|
||||
|
||||
@ -7,27 +7,27 @@ export const setPlayer = (player) => {
|
||||
return {
|
||||
type: SET_PLAYER,
|
||||
player: player
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export const setGame = (data) => {
|
||||
return {
|
||||
type: SET_GAME,
|
||||
board: data.board,
|
||||
turn: data.turn
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export const setGameId = (gameId) => {
|
||||
return {
|
||||
type: SET_GAME_ID,
|
||||
gameId: gameId
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export const selectPiece = (coords) => {
|
||||
return {
|
||||
type: SELECT_PIECE,
|
||||
coords: coords
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user