mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 09:42:13 +00:00
refactor(StreamsList): hide multiselect if there is only one addon
This commit is contained in:
parent
f3440b6e59
commit
f7f4ac38df
1 changed files with 9 additions and 4 deletions
|
|
@ -90,10 +90,15 @@ const StreamsList = ({ className, ...props }) => {
|
|||
</div>
|
||||
:
|
||||
<React.Fragment>
|
||||
<Multiselect
|
||||
{...selectableOptions}
|
||||
className={styles['select-input-container']}
|
||||
/>
|
||||
{
|
||||
Object.keys(streamsByAddon).length > 1 ?
|
||||
<Multiselect
|
||||
{...selectableOptions}
|
||||
className={styles['select-input-container']}
|
||||
/>
|
||||
:
|
||||
null
|
||||
}
|
||||
<div className={styles['streams-container']}>
|
||||
{filteredStreams.map((stream, index) => (
|
||||
<Stream
|
||||
|
|
|
|||
Loading…
Reference in a new issue