diff --git a/package.json b/package.json index 7c148ec..57d198f 100644 --- a/package.json +++ b/package.json @@ -84,6 +84,8 @@ "react-live-clock": "^4.0.5", "react-modal": "^3.11.2", "react-redux": "^7.1.3", + "react-scripts": "3.4.1", + "react-stopwatch": "^2.0.4", "reactstrap": "^8.4.1", "redux": "^4.0.4", "redux-persist": "^6.0.0", diff --git a/src/navbar/index.tsx b/src/navbar/index.tsx index 0df75bc..2811212 100644 --- a/src/navbar/index.tsx +++ b/src/navbar/index.tsx @@ -1,12 +1,14 @@ import React, { useRef, useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import Clock from "react-live-clock"; +import Stopwatch from 'react-stopwatch'; import { FaCircle, FaRegClock, FaRegUser, FaBroadcastTower, + FaSpinner } from "react-icons/fa"; import { RootState } from "../rootReducer"; @@ -41,7 +43,7 @@ function nicifyConnectionState(state: ConnectionStateEnum): string { } } -export function NavBar() { +export function NavBarMain() { const dispatch = useDispatch(); const sessionState = useSelector((state: RootState) => state.session); const broadcastState = useSelector((state: RootState) => state.broadcast); @@ -77,88 +79,9 @@ export function NavBar() { -