Working through each Modal and updating; Addingng ErrorMessage and 'asset not found' messages

This commit is contained in:
James Barnsley
2019-01-22 21:46:56 +13:00
parent 4d7f81b685
commit 1fbd2c36a9
25 changed files with 13470 additions and 18914 deletions

View File

@ -0,0 +1,28 @@
import React from 'react';
export default class ErrorMessage extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className={"error-message"+(this.props.type ? " error-message--"+this.props.type : "")}>
<i className="error-message__icon icon icon--material">error</i>
<h4 className="error-message__title">
{this.props.title ? this.props.title : "Unknown error"}
</h4>
<div className="error-message__content">
{this.props.children}
</div>
</div>
);
}
}