From c297afe1de683a8535497bcfcfb406ba10417170 Mon Sep 17 00:00:00 2001 From: tylerslaton Date: Fri, 1 Nov 2024 10:35:52 -0400 Subject: [PATCH] fix: do not invert tool icons from /admin/assets Signed-off-by: tylerslaton --- ui/admin/app/components/agent/ToolEntry.tsx | 6 +++--- ui/admin/app/components/tools/ToolIcon.tsx | 5 ++++- ui/admin/app/components/tools/toolGrid/CategoryHeader.tsx | 2 +- ui/admin/app/components/tools/toolGrid/ToolCard.tsx | 3 +-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ui/admin/app/components/agent/ToolEntry.tsx b/ui/admin/app/components/agent/ToolEntry.tsx index c2711db50..22555f01d 100644 --- a/ui/admin/app/components/agent/ToolEntry.tsx +++ b/ui/admin/app/components/agent/ToolEntry.tsx @@ -3,9 +3,9 @@ import useSWR from "swr"; import { ToolReferenceService } from "~/lib/service/api/toolreferenceService"; -import { ToolIcon } from "../tools/ToolIcon"; -import { LoadingSpinner } from "../ui/LoadingSpinner"; -import { Button } from "../ui/button"; +import { ToolIcon } from "~/components/tools/ToolIcon"; +import { LoadingSpinner } from "~/components/ui/LoadingSpinner"; +import { Button } from "~/components/ui/button"; export function ToolEntry({ tool, diff --git a/ui/admin/app/components/tools/ToolIcon.tsx b/ui/admin/app/components/tools/ToolIcon.tsx index a556d72f0..197ee208c 100644 --- a/ui/admin/app/components/tools/ToolIcon.tsx +++ b/ui/admin/app/components/tools/ToolIcon.tsx @@ -24,7 +24,10 @@ export function ToolIcon(props: ToolIconProps) { {name} ) : ( diff --git a/ui/admin/app/components/tools/toolGrid/CategoryHeader.tsx b/ui/admin/app/components/tools/toolGrid/CategoryHeader.tsx index 04c69ca7b..4aff1e99f 100644 --- a/ui/admin/app/components/tools/toolGrid/CategoryHeader.tsx +++ b/ui/admin/app/components/tools/toolGrid/CategoryHeader.tsx @@ -19,7 +19,7 @@ export function CategoryHeader({ }: CategoryHeaderProps) { return (
-
+
{tools[0]?.metadata?.icon ? ( void;