From 0a363ef6f31c0ca426ef8422e6ceaff5b2acae5f Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Thu, 28 Jan 2021 21:12:09 +0000 Subject: [PATCH 01/11] Move timelord into separate file, make bigger. --- src/navbar/index.tsx | 21 ++------------------- src/navbar/navbar.scss | 17 ----------------- src/navbar/timelord.scss | 16 ++++++++++++++++ src/navbar/timelord.tsx | 26 ++++++++++++++++++++++++++ src/showplanner/index.tsx | 2 +- 5 files changed, 45 insertions(+), 37 deletions(-) create mode 100644 src/navbar/timelord.scss create mode 100644 src/navbar/timelord.tsx diff --git a/src/navbar/index.tsx b/src/navbar/index.tsx index f313e56..c20dcc1 100644 --- a/src/navbar/index.tsx +++ b/src/navbar/index.tsx @@ -1,6 +1,5 @@ import React, { useRef, useEffect, useState } from "react"; import { shallowEqual, useDispatch, useSelector } from "react-redux"; -import Clock from "react-live-clock"; import { FaCircle, @@ -28,6 +27,7 @@ import { getShowplan, setItemPlayed } from "../showplanner/state"; import * as OptionsMenuState from "../optionsMenu/state"; import { setChannelPFL } from "../mixer/state"; import { secToHHMM, useInterval } from "../lib/utils"; +import { Timelord } from "./timelord"; function nicifyConnectionState(state: ConnectionStateEnum): string { switch (state) { @@ -164,24 +164,7 @@ export function NavBarMain() { return ( <>