mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-13 17:21:14 -05:00
14 lines
330 B
React
14 lines
330 B
React
|
var Formsy = require('formsy-react');
|
||
|
var React = require('react');
|
||
|
|
||
|
module.exports = Formsy.HOC(React.createClass({
|
||
|
render: function () {
|
||
|
if (!this.props.showError()) return null;
|
||
|
return (
|
||
|
<p className="error">
|
||
|
{this.props.getErrorMessage()}
|
||
|
</p>
|
||
|
);
|
||
|
}
|
||
|
}));
|