From 3101c61584a3b072ac40dba4a77e15371b01f175 Mon Sep 17 00:00:00 2001 From: nocnico Date: Mon, 17 Mar 2025 20:29:40 +0100 Subject: [PATCH] fixed ui --- .../(dispatch)/_components/navbar/Navbar.tsx | 32 +++++--------- .../_components/navbar/_components/Audio.tsx | 44 ++++++++++++------- 2 files changed, 37 insertions(+), 39 deletions(-) diff --git a/apps/dispatch/app/(dispatch)/_components/navbar/Navbar.tsx b/apps/dispatch/app/(dispatch)/_components/navbar/Navbar.tsx index b0e4ce03..4029a064 100644 --- a/apps/dispatch/app/(dispatch)/_components/navbar/Navbar.tsx +++ b/apps/dispatch/app/(dispatch)/_components/navbar/Navbar.tsx @@ -5,6 +5,7 @@ import { Connection } from "./_components/Connection"; import { ThemeSwap } from "./_components/ThemeSwap"; import { Audio } from "./_components/Audio"; import { useState } from "react"; +import { ExitIcon, ExternalLinkIcon } from "@radix-ui/react-icons"; export default function Navbar() { const [isDark, setIsDark] = useState(false); @@ -26,31 +27,18 @@ export default function Navbar() {
-
- +
-
-
- ... -
- + +
+ +
diff --git a/apps/dispatch/app/(dispatch)/_components/navbar/_components/Audio.tsx b/apps/dispatch/app/(dispatch)/_components/navbar/_components/Audio.tsx index 583887bc..22d3337b 100644 --- a/apps/dispatch/app/(dispatch)/_components/navbar/_components/Audio.tsx +++ b/apps/dispatch/app/(dispatch)/_components/navbar/_components/Audio.tsx @@ -3,7 +3,6 @@ import { useEffect, useState } from "react"; import { useConnectionStore } from "_store/connectionStore"; import { - Circle, Disc, Mic, PlugZap, @@ -50,7 +49,7 @@ export const Audio = () => { return ( <> -
+
{state === "connected" && ( -
+
- {connectionQuality === ConnectionQuality.Excellent && } - {connectionQuality === ConnectionQuality.Good && } - {connectionQuality === ConnectionQuality.Poor && } - {connectionQuality === ConnectionQuality.Lost && } - {connectionQuality === ConnectionQuality.Unknown && ( - + {connectionQuality === ConnectionQuality.Excellent && ( + )} -
+ {connectionQuality === ConnectionQuality.Good && ( + + )} + {connectionQuality === ConnectionQuality.Poor && ( + + )} + {connectionQuality === ConnectionQuality.Lost && ( + + )} + {connectionQuality === ConnectionQuality.Unknown && ( + + )} +
{remoteParticipants}
-
    +
      {ROOMS.map((r) => (
    • ))}