Skip to content

Commit

Permalink
[splendo#13] Aligned text to center
Browse files Browse the repository at this point in the history
  • Loading branch information
corrado4eyes committed Dec 6, 2019
1 parent 1fcaaa7 commit c3fa463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hearthstone/src/uiComponents/cardComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { Image, Card, Button, Row, Col } from 'react-bootstrap';
import CardModel from '../model/card';
const noImg = '../assets/noImg.jpg';
import noImg from '../assets/noImg.jpg';

interface OwnProps {
card: CardModel;
Expand All @@ -28,7 +28,7 @@ export class CardComponent extends React.PureComponent<OwnProps, OwnState> {

render() {
return(
<Card className="no-border">
<Card className="no-border text-center">
<Card.Img variant="top" src={(!this.state.goldImg ? this.props.card.img : this.props.card.imgGold) || noImg}/>
<Card.Title>{this.props.card.name}</Card.Title>
<Card.Text>
Expand Down

0 comments on commit c3fa463

Please sign in to comment.