Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_.reduce(this.radioGroupEntries, (result, e: RadioGroupEntry) => {
result.push(
D.label(
{
key: e.label,
style: {marginRight: '10px'},
},
createElement(Radio, {value: e.type, title: e.label}),
e.label
)
);
return result;
}, new Array>())
)
render() {
return D.div(
{
className: 'facet__relation__values__value checkbox',
onClick: this.onValueClick.bind(this),
},
D.label(
{},
D.input(
{
type: 'checkbox',
className: 'checkbox',
checked: this.state.selected,
}
),
this.renderCheckboxLabel(),
this.state.isLoading ? createElement(Spinner) : D.span({})
)
);
}