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:
parent
f4e976b08a
commit
39f5fb503c
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user