Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render () {
// eslint-disable-next-line react/prop-types
const { margin, elementRef, layout, caption, children, hover, mode } = this.props
const isStacked = layout === 'stacked' || mode === 'stacked'
const headers = isStacked ? this.getHeaders() : null
return (
{({ expanded, getToggleProps, getDetailsProps }) => {
return (
render () {
const { children, textAlign, isStacked, header } = this.props
return (
)
}
}
render () {
const { children, isStacked } = this.props
return isStacked
? this.renderSelect()
: (
{Children.map(children, (child) => matchComponentTypes(child, [Row])
? child
: null)}
)
}
}
renderToggle (toggleProps, expanded) {
const {
variant,
fluidWidth
} = this.props
const props = {
...omitProps(this.props, ToggleDetails.propTypes),
...toggleProps,
children: this.renderSummary()
}
const summary = this.renderSummary(expanded)
if (variant === 'filled') {
return (
<button>
{summary}
</button>
)
render () {
const { children, hover, isStacked, headers } = this.props
return (
)
}
}
render () {
const { children, textAlign, isStacked } = this.props
return (
)
}
}
render () {
const { children, hover, isStacked, headers } = this.props
return (
render () {
const { onRequestSort, width, textAlign, children } = this.props
return (
{onRequestSort && (