mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
prevent spreading not used props on multiselects in discover
This commit is contained in:
parent
aef6719d85
commit
130b9b22ba
1 changed files with 10 additions and 2 deletions
|
|
@ -56,8 +56,16 @@ const Discover = ({ urlParams, queryParams }) => {
|
|||
{
|
||||
available ?
|
||||
<div className={styles['selectable-inputs-container']}>
|
||||
{selectInputs.map((selectInput, index) => (
|
||||
<Multiselect {...selectInput} key={index} className={styles['select-input-container']} />
|
||||
{selectInputs.map(({ title, options, selected, renderLabelText, onSelect }, index) => (
|
||||
<Multiselect
|
||||
key={index}
|
||||
className={styles['select-input-container']}
|
||||
title={title}
|
||||
options={options}
|
||||
selected={selected}
|
||||
renderLabelText={renderLabelText}
|
||||
onSelect={onSelect}
|
||||
/>
|
||||
))}
|
||||
<Button className={styles['filter-container']} title={'All filters'} onClick={openInputsModal}>
|
||||
<Icon className={styles['filter-icon']} icon={'ic_filter'} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue