From 4a1599d2f5cc514731beca4207e83c9475f688e3 Mon Sep 17 00:00:00 2001 From: michael-grace Date: Sun, 18 Oct 2020 22:41:33 +0100 Subject: [PATCH 1/5] add autoplayout selector --- src/showplanner/AutoPlayoutModal.tsx | 37 ++++++++++++++++++++++++++++ src/showplanner/index.tsx | 17 +++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 src/showplanner/AutoPlayoutModal.tsx diff --git a/src/showplanner/AutoPlayoutModal.tsx b/src/showplanner/AutoPlayoutModal.tsx new file mode 100644 index 0000000..f676ab9 --- /dev/null +++ b/src/showplanner/AutoPlayoutModal.tsx @@ -0,0 +1,37 @@ +import React from "react"; +import { FaTimes, FaPlayCircle } from "react-icons/fa"; +import Modal from "react-modal"; +import { Button } from "reactstrap"; + +interface AutoPlayoutProps { + isOpen: boolean; + close: () => any; +} + +export function AutoPlayoutModal(props: AutoPlayoutProps) { + return ( + +
+

+ + URY Automatic Playout +

+ +
+
+ +
+
+ ); +} diff --git a/src/showplanner/index.tsx b/src/showplanner/index.tsx index 426c541..09bf3ac 100644 --- a/src/showplanner/index.tsx +++ b/src/showplanner/index.tsx @@ -8,6 +8,7 @@ import { FaMicrophone, FaTrash, FaUpload, + FaPlayCircle, } from "react-icons/fa"; import { VUMeter } from "../optionsMenu/helpers/VUMeter"; import Stopwatch from "react-stopwatch"; @@ -50,6 +51,7 @@ import { CombinedNavAlertBar } from "../navbar"; import { OptionsMenu } from "../optionsMenu"; import { WelcomeModal } from "./WelcomeModal"; import { PisModal } from "./PISModal"; +import { AutoPlayoutModal } from "./AutoPlayoutModal"; import { LibraryUploadModal } from "./LibraryUploadModal"; import { ImporterModal } from "./ImporterModal"; import "./channel.scss"; @@ -88,6 +90,7 @@ function LibraryColumn() { (state: RootState) => state.showplan ); + const [autoPlayoutModal, setAutoPlayoutModal] = useState(false); const [showLibraryUploadModal, setShowLibraryModal] = useState(false); const [showImporterModal, setShowImporterModal] = useState(false); @@ -97,6 +100,10 @@ function LibraryColumn() { return ( <> + setAutoPlayoutModal(false)} + /> setShowLibraryModal(false)} @@ -111,6 +118,16 @@ function LibraryColumn() { Libraries +