Skip to content

Commit

Permalink
[splendo#7] Updated component
Browse files Browse the repository at this point in the history
  • Loading branch information
corrado4eyes committed Dec 5, 2019
1 parent 30d19d2 commit bc41d0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hearthstone/src/uiComponents/cardComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface OwnProps {
card: CardModel;
}

interface OwnState {
export interface OwnState {
goldImg: boolean
}
export class CardComponent extends React.PureComponent<OwnProps, OwnState> {
Expand Down Expand Up @@ -37,10 +37,10 @@ export class CardComponent extends React.PureComponent<OwnProps, OwnState> {
</Card.Text>
<Row>
<Col>
<Button variant={!this.props.card.imgGold ? "danger" : "primary"} onClick={this.switchImage.bind(this)} disabled={this.props.card.img ? false : true}>Change image</Button>
<Button id="switchImg" variant={!this.props.card.imgGold ? "danger" : "primary"} onClick={this.switchImage} disabled={this.props.card.img ? false : true}>Change image</Button>
</Col>
<Col>
<Button onClick={this.addToFavourites.bind(this)}>Add to Favourites</Button>
<Button id="favBtn" onClick={this.addToFavourites}>Add to Favourites</Button>
</Col>
</Row>
</Card>
Expand Down

0 comments on commit bc41d0f

Please sign in to comment.