diff --git a/app/components/chess-board.js b/app/components/chess-board.js index ae83ca6..2efb4a5 100644 --- a/app/components/chess-board.js +++ b/app/components/chess-board.js @@ -10,6 +10,7 @@ class ChessBoard extends React.Component { } renderFiles(rankId) { + const { store } = this.props; const rank = this.getBoard()[rankId]; return Object.keys(rank).map((fileId) => { @@ -18,7 +19,8 @@ class ChessBoard extends React.Component { file={fileId} key={fileId} rank={rankId} - square={rank[fileId]} + piece={rank[fileId]} + store={store} /> ); });