Sha256: 9676bcd8146e375d20488ff258eb596646449e37aa0567307c4c4cd900f3456b
Contents?: true
Size: 1014 Bytes
Versions: 4
Compression:
Stored size: 1014 Bytes
Contents
import React from 'react'; export class ErrorDisplay extends React.Component { static propTypes = {model: Lanes.PropTypes.State.isRequired}; bindEvents() { return ( {model: "change:error"} ); } clearErrors() { return ( this.model.errors = null ); } render() { if (!this.model.errors) { return null; } return ( <div export className="alert alert-warning alert-dismissible" role="alert"> <button onClick={this.clearErrors} type="button" export className="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true"> × </span> </button> <i export className="icon icon-exclamation-circle" /> {this.model.errorMessage} </div> ); } }
Version data entries
4 entries across 4 versions & 1 rubygems