From a95d7d7f6a9422e6f2bd7ad780c112dc7ee0b972 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 10 Jun 2023 16:52:30 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(cardComponent):=20update?= =?UTF-8?q?=20color=20of=20card=20background=20and=20icons=20=F0=9F=92=84?= =?UTF-8?q?=20style(cardComponent):=20update=20layout=20of=20card=20footer?= =?UTF-8?q?=20and=20remove=20unused=20code=20The=20background=20color=20of?= =?UTF-8?q?=20the=20card=20component=20has=20been=20updated=20to=20a=20lig?= =?UTF-8?q?hter=20shade=20of=20blue.=20The=20icons=20used=20for=20editing?= =?UTF-8?q?=20and=20deleting=20a=20flow=20have=20been=20updated=20to=20use?= =?UTF-8?q?=20the=20Lucide=20icon=20library.=20The=20layout=20of=20the=20c?= =?UTF-8?q?ard=20footer=20has=20been=20updated=20to=20align=20the=20conten?= =?UTF-8?q?t=20to=20the=20right=20and=20remove=20unused=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/cardComponent/index.tsx | 48 +++++++++---------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/src/frontend/src/pages/MainPage/components/cardComponent/index.tsx b/src/frontend/src/pages/MainPage/components/cardComponent/index.tsx index 7871d18f3..2b05a0df7 100644 --- a/src/frontend/src/pages/MainPage/components/cardComponent/index.tsx +++ b/src/frontend/src/pages/MainPage/components/cardComponent/index.tsx @@ -3,6 +3,7 @@ import { ArrowTopRightOnSquareIcon, TrashIcon, } from "@heroicons/react/24/outline"; +import { Edit, Trash } from "lucide-react"; import { OpenAiIcon } from "../../../../icons/OpenAi"; import { Button } from "../../../../components/ui/button"; import { Badge } from "../../../../components/ui/badge"; @@ -34,29 +35,38 @@ export const CardComponent = ({ let emoji = flow.style?.emoji || "🤖"; // get random tailwind color - let color = flow.style?.color || "bg-blue-400"; + let color = flow.style?.color || "bg-blue-200"; return (
- {emoji} - + */} {flow.name}
- +
+ {/* make the icons shake a bit on hover */} + { + setTabIndex(idx); + setActiveTab("myflow"); + }} + /> + { + removeFlow(flow.id); + }} + /> +
@@ -69,8 +79,8 @@ export const CardComponent = ({ -
-
+
+ {/*
{idx === 0 ? "Agent" : "Tool"} {idx === 0 && ( @@ -80,19 +90,7 @@ export const CardComponent = ({  OpenAI+ )} -
- +
*/}