diff --git a/.eslintrc b/.eslintrc index f9796f6..cbd3b89 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,6 +3,7 @@ "rules": { "indent": ["error", 2], "import/prefer-default-export": 0, - "react/require-default-props": 0 + "react/require-default-props": 0, + "react/forbid-prop-types": 0 } } diff --git a/app.js b/app.js index b86cad2..0a394b7 100644 --- a/app.js +++ b/app.js @@ -10,9 +10,8 @@ import { useEventStream } from './src/hooks/data' import { useTimeout } from './src/hooks/timerHooks' export default () => { - const [isPlaying, setIsPlaying] = useState(false) const [currentVideo, setCurrentVideo] = useState(null) - const [streamIsLive, setStreamLive] = useState(false) + const [streamIsLive, setStreamIsLive] = useState(false) const [infoActive, setInfoActive] = useState(false) const [minLoadTimePassed, setMinTimeUp] = useState(false) const { data, loading } = useEventStream() @@ -42,7 +41,7 @@ export default () => { end: stream.end, }) ) { - setStreamLive(`${config.peertube_root}${stream.embedPath}`) + setStreamIsLive(true) } }) } @@ -51,14 +50,7 @@ export default () => { return (
{currentVideo && !infoActive && minLoadTimePassed ? ( -