Fix eslint6 react/self-closing-comp

[MAILPOET-1140]
This commit is contained in:
Pavel Dohnal
2018-03-15 09:31:41 +00:00
parent 4177701044
commit c39aeb6283
5 changed files with 4 additions and 6 deletions

View File

@ -31,7 +31,6 @@
"react/jsx-boolean-value": 0, "react/jsx-boolean-value": 0,
"react/jsx-no-bind": 0, "react/jsx-no-bind": 0,
"react/no-array-index-key": 0, "react/no-array-index-key": 0,
"react/self-closing-comp": 0,
"react/jsx-closing-bracket-location": 0, "react/jsx-closing-bracket-location": 0,
"react/no-string-refs": 0, "react/no-string-refs": 0,
"react/no-did-mount-set-state": 0, "react/no-did-mount-set-state": 0,

View File

@ -32,8 +32,7 @@ function Tooltip(props) {
data-event="click" data-event="click"
data-tip data-tip
data-for={tooltipId} data-for={tooltipId}
> />
</span>
<ReactTooltip <ReactTooltip
globalEventOff="click" globalEventOff="click"
multiline={true} multiline={true}

View File

@ -72,7 +72,7 @@ const ListingColumn = React.createClass({
label = ( label = (
<a onClick={this.handleSort}> <a onClick={this.handleSort}>
<span>{ this.props.column.label }</span> <span>{ this.props.column.label }</span>
<span className="sorting-indicator"></span> <span className="sorting-indicator" />
</a> </a>
); );
} else { } else {

View File

@ -129,7 +129,7 @@ const QueueMixin = {
<span <span
className="mailpoet_progress_bar" className="mailpoet_progress_bar"
style={{ width: `${progressBarWidth}%` }} style={{ width: `${progressBarWidth}%` }}
></span> />
<span className="mailpoet_progress_label"> <span className="mailpoet_progress_label">
{ percentage } { percentage }
</span> </span>

View File

@ -107,7 +107,7 @@ class TemplateBox extends React.Component {
preview = ( preview = (
<a href="javascript:;" onClick={this.onPreview}> <a href="javascript:;" onClick={this.onPreview}>
<img src={thumbnail} /> <img src={thumbnail} />
<div className="mailpoet_overlay"></div> <div className="mailpoet_overlay" />
</a> </a>
); );
} }