Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const className =
columnIndex === 0 ? 'marked ' + markerColor(contents) : ''
const cell = h(
semantic.Table.Cell,
{
error,
className
},
contents
)
return cell
})
const activePopup = this.state.activePopup
const rowActivePopup = activePopup && activePopup[0] === rowIndex
const className = rowActivePopup ? 'selected' : ''
return h(semantic.Table.Row, {className}, ramda.flatten(bodyCells))
})
const bodyJSX = tbody(bodyLinesJSX)
let headingJSX = headings.map(text => h(semantic.Table.HeaderCell, text))
headingJSX = h(semantic.Table.Header, [h(semantic.Table.Row, headingJSX)])
null,
_react2.default.createElement(
_semanticUiReact.Table.Row,
null,
_react2.default.createElement(
_semanticUiReact.Table.HeaderCell,
null,
'#/ID'
),
_react2.default.createElement(
_semanticUiReact.Table.HeaderCell,
null,
'TITLE'
),
_react2.default.createElement(
_semanticUiReact.Table.HeaderCell,
null,
'ACTION'
)
)
),
_react2.default.createElement(
_semanticUiReact.Table.Body,
null,
data.map(function (obj) {
return _react2.default.createElement(
_semanticUiReact.Table.Row,
{ key: obj._id || obj.id },
_react2.default.createElement(
_semanticUiReact.Table.Cell,
null,
headerToString(obj, header.id)
}
});
return _react2.default.createElement(
_semanticUiReact.Segment,
{ color: 'black', className: 'View' },
_react2.default.createElement(
_semanticUiReact.Table,
{ celled: true, className: 'List' },
_react2.default.createElement(
_semanticUiReact.Table.Header,
null,
_react2.default.createElement(
_semanticUiReact.Table.Row,
null,
_react2.default.createElement(
_semanticUiReact.Table.HeaderCell,
null,
'#/ID'
),
_react2.default.createElement(
_semanticUiReact.Table.HeaderCell,
null,
'TITLE'
),
_react2.default.createElement(
_semanticUiReact.Table.HeaderCell,
null,
'ACTION'
)
)
),
_react2.default.createElement(
function specRow(spec) {
return h(semantic.Table.Row, [
h(semantic.Table.Cell, spec.name),
h(semantic.Table.Cell, spec.value)
])
}
args.map(text => {
return h(semantic.Table.Cell, text)
})
)