1
0
mirror of https://github.com/franjsco/tick3t synced 2025-02-11 01:10:43 +01:00

improve with props.children

This commit is contained in:
frab1t 2019-05-08 16:16:18 +02:00
parent f4e976b08a
commit 39f5fb503c

View File

@ -23,19 +23,16 @@ class Card extends Component {
return ( return (
<div> <div>
<CardBootstrap className={`${textAlign} card-cust shadow-sm p-3 mb-5 bg-white rounded`} > <CardBootstrap className={`${textAlign} shadow-sm p-3 mb-5 bg-white rounded`} >
<CardBody> <CardBody>
<CardTitle> <CardTitle>
<h4>{this.props.title}</h4> <h4>{this.props.title}</h4>
</CardTitle> </CardTitle>
<CardText> <CardText>
{this.props.message} {this.props.subtitle}
</CardText> </CardText>
<div> <div>
{this.props.body} {this.props.children}
</div>
<div>
{this.props.footer}
</div> </div>
</CardBody> </CardBody>
</CardBootstrap> </CardBootstrap>