import React, { Component } from 'react';
import './AlertWidget.css';

class AlertWidget extends Component {

  render() {
    const theme = this.props.theme;
    const style = theme ? {
      backgroundColor: this.props.readOnly ? '' : theme.background,
      color: theme.text
    } : {};
    return (
      <div className="AlertWidget" style={style}>
        <svg className={'level' + this.props.level}><use xlinkHref='#warning' /></svg>
        <section>
          <div>{this.props.label}</div>
          <h2>{this.props.value}</h2>
        </section>
      </div>
    );
  }

}

export default AlertWidget

@@ -206,35 +206,8 @@
 lor:
- this.props.readOnly ? '' :
  the

Remove useless test in AlertWidget