Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onClick: selectClick,
onDoubleClick: configureClick,
style: !isCurrentLayer ? null : styleHoverColor
},
_react2.default.createElement(
'td',
{ style: iconColStyle },
!isCurrentLayer ? _react2.default.createElement(_fa.FaEye, {
onClick: swapVisibility,
style: !layer.visible ? styleEyeHidden : styleEyeVisible
}) : null
),
_react2.default.createElement(
'td',
{ style: iconColStyle },
_react2.default.createElement(_fa.FaPencilAlt, {
onClick: configureClick,
style: !isCurrentLayer ? styleEditButton : styleEditButtonHover,
title: _this2.context.translator.t('Configure layer')
})
),
_react2.default.createElement(
'td',
{ style: iconColStyle },
!isLastLayer ? _react2.default.createElement(_fa.FaTrash, {
onClick: function onClick(e) {
return _this2.delLayer(e, layerID);
},
style: !isCurrentLayer ? styleEditButton : styleEditButtonHover,
title: _this2.context.translator.t('Delete layer')
}) : null
),