embark/lib/modules/webserver/backend/contracts/components/card-alert.js

14 lines
253 B
JavaScript
Raw Normal View History

class CardAlert extends React.Component {
render(){
return this.props.show ?
<div className="card-alert alert alert-danger mb-0">
{this.props.message}
</div>
:
'';
}
}