Skip to content

Commit

Permalink
selectedColor bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
radi-cho committed Jun 15, 2018
1 parent a91c8a8 commit 411c49d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rsg-chess-rn-graphics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rsg-chess-rn-graphics",
"version": "1.1.0-alpha.1",
"version": "1.1.0-alpha.3",
"description": "Beautiful chess graphics for React Native apps.",
"main": "index.js",
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions rsg-chess-rn-graphics/src/ChessBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ export default class ChessBoard extends Component<Props> {
cell &&
cell.color === "B" &&
styles.rotatedStyles,
selected && {
color: props.selectedColor
}
selected &&
selected === cell && {
color: props.selectedColor
}
]}
>
{cell && cell.char}
Expand Down

0 comments on commit 411c49d

Please sign in to comment.