mirror of
https://github.com/franjsco/tick3t
synced 2025-02-05 20:53:25 +01:00
improve with props.children
This commit is contained in:
parent
f4e976b08a
commit
39f5fb503c
@ -23,19 +23,16 @@ class Card extends Component {
|
||||
|
||||
return (
|
||||
<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>
|
||||
<CardTitle>
|
||||
<h4>{this.props.title}</h4>
|
||||
</CardTitle>
|
||||
<CardText>
|
||||
{this.props.message}
|
||||
{this.props.subtitle}
|
||||
</CardText>
|
||||
<div>
|
||||
{this.props.body}
|
||||
</div>
|
||||
<div>
|
||||
{this.props.footer}
|
||||
{this.props.children}
|
||||
</div>
|
||||
</CardBody>
|
||||
</CardBootstrap>
|
||||
|
Loading…
x
Reference in New Issue
Block a user