From fc84e48c4ee1d7fed9d62245d2e605f87e5670cf Mon Sep 17 00:00:00 2001 From: Lanskikh Date: Tue, 3 Jun 2025 18:52:38 +0500 Subject: [PATCH] upd fix unlinked desktop --- src/components/DesktopCard.tsx | 60 ++++++++++++++++++----------- src/components/icons/UnlinkIcon.tsx | 13 +++++++ 2 files changed, 50 insertions(+), 23 deletions(-) create mode 100644 src/components/icons/UnlinkIcon.tsx diff --git a/src/components/DesktopCard.tsx b/src/components/DesktopCard.tsx index ed07312..566f5e4 100644 --- a/src/components/DesktopCard.tsx +++ b/src/components/DesktopCard.tsx @@ -9,6 +9,8 @@ import CogIcon from "./icons/CogIcon"; import ChevronLeftIcon from "./icons/ChevronLeftIcon"; import PlusIcon from "./icons/PlusIcon"; import EditTable from "./modals/EditTable"; +import UnlinkIcon from "./icons/UnlinkIcon"; +import clsx from "clsx"; interface IDesktopCardProps { server: IServer; @@ -46,56 +48,68 @@ export default function DesktopCard({ server }: IDesktopCardProps) { } return ( -
-
+
+
setModal()} > - +
-
-
-

+

+
+

{server.name}

-

{server.location}

+

{server.location}

-
+
{server.sessions?.[0]?.status === "started" ? ( -
+
endSession()} - className='flex gap-[0.556vw] items-center' + className="flex gap-[0.556vw] items-center" > - + -

Идёт сеанс

- +

Идёт сеанс

+
+ ) : server.status === "offline" ? ( + + + + + Проверьте соединение + ) : ( -
- +
+ -

Создать сеанс

+

Создать сеанс

)} diff --git a/src/components/icons/UnlinkIcon.tsx b/src/components/icons/UnlinkIcon.tsx new file mode 100644 index 0000000..d51016f --- /dev/null +++ b/src/components/icons/UnlinkIcon.tsx @@ -0,0 +1,13 @@ +function UnlinkIcon() { + return ( + + + + + ); +} + +export default UnlinkIcon;