Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { mod, disabled, className } = this.props
const bemBlocks = {
container: block(mod).el,
option: block(`${mod}-option`).el
}
return (
<div disabled="" data-qa="options">
{[this.allAction(this.allItemsSelected()), ...this.itemComponentList()]}
</div>
)
}
}
render() {
const {hits, mod, className, itemComponent, additionalFields} = this.props
const bemBlocks = {
container: block(mod),
item: block(`${mod}-hit`)
}
return (
<section data-qa="hits">
{map(hits, (result, index)=> {
return renderComponent(itemComponent, {
key:result._id, result, bemBlocks, index, additionalFields
})
})}
</section>
)
}
}
render() {
const {hits, mod, className, itemComponent, additionalFields} = this.props
const bemBlocks = {
container: block(mod),
item: block(`${mod}-hit`)
}
return (
<section data-qa="hits">
{map(hits, (result, index)=> {
return renderComponent(itemComponent, {
key:result._id, result, bemBlocks, index, additionalFields
})
})}
</section>
)
}
}
render() {
const { mod, className, items, disabled, showCount, translate, countFormatter } = this.props;
const bemBlocks = {
container: block(mod)
}
let divClasses = classNames(bemBlocks.container().mix(className).state({ disabled }), 'form-group');
const options = map(items, ({key, label, title, disabled, doc_count}, idx) => {
var text = translate(label || title || key)
if (showCount && doc_count !== undefined) text += ` (${countFormatter(doc_count)})`;
return <option disabled="{disabled}" value="{key}">{text}</option>;
});
return (
<div>
<select value="{this.getSelectedValue()}">
{options}
</select>
</div>
)
render() {
const { mod, disabled, className } = this.props
const bemBlocks = {
container: block(mod).el,
option: block(`${mod}-option`).el
}
return (
<div disabled="" data-qa="options">
{[this.allAction(this.allItemsSelected()), ...this.itemComponentList()]}
</div>
)
}
}