From d942be3af30f34d82988a1a4e9920d308adc2846 Mon Sep 17 00:00:00 2001 From: nocnico Date: Sat, 15 Mar 2025 17:14:36 +0100 Subject: [PATCH] LST Verbinden & Verbunden Button --- .../app/(dispatch)/_components/Connection.tsx | 81 ++++++++++++++++++- .../app/(dispatch)/_components/Navbar.tsx | 2 +- 2 files changed, 81 insertions(+), 2 deletions(-) diff --git a/apps/dispatch/app/(dispatch)/_components/Connection.tsx b/apps/dispatch/app/(dispatch)/_components/Connection.tsx index b6b97e44..9754cff2 100644 --- a/apps/dispatch/app/(dispatch)/_components/Connection.tsx +++ b/apps/dispatch/app/(dispatch)/_components/Connection.tsx @@ -1,6 +1,85 @@ import { useSession } from "next-auth/react"; import { connectionStore } from "../../_store/connectionStore"; import { useEffect } from "react"; +import { CheckCircledIcon } from "@radix-ui/react-icons"; + +export const ConnectBtn = () => { + return ( + <> + + +
+

Als Disponent anmelden

+
+ +

+ Du kannst diese Zeit später noch anpassen. +

+
+
+
+ + +
+
+
+
+ + ); +}; + +export const ConnectedBtn = () => { + return ( + <> + + +
+

+ Verbunden als <LST_01> +

+
+ +
+
+
+ + +
+
+
+
+ + ); +}; export const Connection = () => { const session = useSession(); @@ -13,5 +92,5 @@ export const Connection = () => { } }, [uid]); - return
{cStore.isConnected ? "Connected" : "Not Connected"}
; + return
{cStore.isConnected ? : }
; }; diff --git a/apps/dispatch/app/(dispatch)/_components/Navbar.tsx b/apps/dispatch/app/(dispatch)/_components/Navbar.tsx index 08907984..7092820b 100644 --- a/apps/dispatch/app/(dispatch)/_components/Navbar.tsx +++ b/apps/dispatch/app/(dispatch)/_components/Navbar.tsx @@ -51,7 +51,7 @@ export default function Navbar() { -
+