Skip to content
Snippets Groups Projects
Commit d0e86306 authored by Tom Robinson's avatar Tom Robinson
Browse files

Forward style prop to LoadingAndErrorWrapper root element

parent 8417e9af
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ export default class LoadingAndErrorWrapper extends Component {
noBackground: PropTypes.bool,
noWrapper: PropTypes.bool,
children: PropTypes.any,
style: PropTypes.object
};
static defaultProps = {
......@@ -55,7 +56,7 @@ export default class LoadingAndErrorWrapper extends Component {
return React.Children.only(this.getChildren());
}
return (
<div className={this.props.className}>
<div className={this.props.className} style={this.props.style}>
{ error ?
<div className={contentClassName}>
<h2 className="text-normal text-grey-2">{this.getErrorMessage()}</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment