shorthand replacements for React.Fragment and <span>

This commit is contained in:
or-else
2019-09-22 21:18:31 +03:00
parent 2502460143
commit 12a0660e5b
6 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -35,14 +35,14 @@ export default class ErrorPanel extends React.PureComponent {
return (
<div className={className}>
<div className="icon"><i className="material-icons">{level}</i></div>
<span>
<>
<span dangerouslySetInnerHTML={{__html: this.props.text}} />
{this.props.action ?
<a href="#" onClick={(e) => {e.preventDefault(); this.props.action();}}>
{this.props.actionText}
</a>
: null}
</span>
</>
<div className="cancel"><MenuCancel onCancel={this.hide} /></div>
</div>
);