Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onMouseLeave: function onMouseLeave(e) {
return _this2.setState({ hover: false });
}
},
_react2.default.createElement(
'b',
{ style: !hover ? STYLE_TITLE : STYLE_TITLE_HOVER },
element.info.title
),
_react2.default.createElement(
'div',
{ style: STYLE_IMAGE_CONTAINER },
_react2.default.createElement(
'div',
{ style: _extends({}, !hover ? STYLE_IMAGE : STYLE_IMAGE_HOVER, { backgroundImage: 'url(' + element.info.image + ')' }) },
hover ? _react2.default.createElement(_fa.FaPlusCircle, { style: STYLE_PLUS_HOVER }) : null
)
),
_react2.default.createElement(
'ul',
{ style: STYLE_TAGS },
element.info.tag.map(function (tag, index) {
return _react2.default.createElement(
'li',
{ style: STYLE_TAG, key: index },
tag
);
})
),
_react2.default.createElement(
'div',
{ style: STYLE_DESCRIPTION },