mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 09:22:49 -05:00
Remove no longer necessary customStreams search
This commit is contained in:
@@ -15,7 +15,7 @@ import TwitchIcon from '../static/twitch.svg'
|
|||||||
import YouTubeIcon from '../static/youtube.svg'
|
import YouTubeIcon from '../static/youtube.svg'
|
||||||
import SoundIcon from '../static/volume-up-solid.svg'
|
import SoundIcon from '../static/volume-up-solid.svg'
|
||||||
|
|
||||||
function Overlay({ config, views, streams, customStreams }) {
|
function Overlay({ config, views, streams }) {
|
||||||
const { width, height } = config
|
const { width, height } = config
|
||||||
const activeViews = views
|
const activeViews = views
|
||||||
.map(({ state, context }) => State.from(state, context))
|
.map(({ state, context }) => State.from(state, context))
|
||||||
@@ -24,9 +24,7 @@ function Overlay({ config, views, streams, customStreams }) {
|
|||||||
<div>
|
<div>
|
||||||
{activeViews.map((viewState) => {
|
{activeViews.map((viewState) => {
|
||||||
const { content, pos } = viewState.context
|
const { content, pos } = viewState.context
|
||||||
const data = [...streams, ...customStreams].find(
|
const data = streams.find((d) => content.url === d.link)
|
||||||
(d) => content.url === d.link,
|
|
||||||
)
|
|
||||||
const isListening = viewState.matches(
|
const isListening = viewState.matches(
|
||||||
'displaying.running.audio.listening',
|
'displaying.running.audio.listening',
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user