From 6c68425a9ed2d207c5ce5e8c725055bd1c47e830 Mon Sep 17 00:00:00 2001 From: stefano Date: Tue, 28 May 2024 23:57:48 +0200 Subject: [PATCH] Fix broken components --- gateway/src/components/Broadcast/ApiKey.js | 1 + .../components/Broadcast/GenerateStream.js | 2 + .../src/components/Broadcast/WatchStream.js | 30 +++-------- widget/page/home.jsx | 52 +++++++++++++++---- 4 files changed, 50 insertions(+), 35 deletions(-) diff --git a/gateway/src/components/Broadcast/ApiKey.js b/gateway/src/components/Broadcast/ApiKey.js index 4388f25..709f633 100644 --- a/gateway/src/components/Broadcast/ApiKey.js +++ b/gateway/src/components/Broadcast/ApiKey.js @@ -3,6 +3,7 @@ import React, { useEffect, useState } from "react"; import { useStore } from "./state"; import styled from "styled-components"; + const FormContainer = styled.form` display: flex; flex-direction: column; diff --git a/gateway/src/components/Broadcast/GenerateStream.js b/gateway/src/components/Broadcast/GenerateStream.js index c6c2faa..a4f8d85 100644 --- a/gateway/src/components/Broadcast/GenerateStream.js +++ b/gateway/src/components/Broadcast/GenerateStream.js @@ -1,4 +1,6 @@ import React, { useState } from "react"; +import styled from "styled-components"; + import { useStore } from "./state"; const GenerateStream = ({ url }) => { diff --git a/gateway/src/components/Broadcast/WatchStream.js b/gateway/src/components/Broadcast/WatchStream.js index 7b0aedd..7a3d542 100644 --- a/gateway/src/components/Broadcast/WatchStream.js +++ b/gateway/src/components/Broadcast/WatchStream.js @@ -1,6 +1,8 @@ -import React, { useState } from "react"; -import { useStore } from "../Broadcast/state"; +import React from "react"; import styled from "styled-components"; + +import { useStore } from "../Broadcast/state"; + const Container = styled.div` display: flex; flex-direction: column; @@ -56,30 +58,10 @@ const WatchStream = ({ pId }) => { return ( -
- setStreamName(event.target.value)} - placeholder="Enter stream name" - /> - -
-
- -

Current Input: {inputValue}

- -
- {streamLink && ( + {currentPlaybackId && ( - {" "}