From e508f03abbe42d3507e32b0b4df506fdeb9c3a4d Mon Sep 17 00:00:00 2001 From: John Costa Date: Fri, 18 Jul 2025 11:27:26 +0100 Subject: [PATCH] fix: categories styling --- frontend/src/front/index.tsx | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/frontend/src/front/index.tsx b/frontend/src/front/index.tsx index 5a0df99..8ac4174 100644 --- a/frontend/src/front/index.tsx +++ b/frontend/src/front/index.tsx @@ -8,34 +8,30 @@ const CategoryColor: Record< keyof ReturnType, string > = { - contact: "bg-red-500", - location: "bg-green-500", - event: "bg-blue-500", - note: "bg-purple-500", + contact: "bg-orange-50", + location: "bg-red-50", + event: "bg-purple-50", + note: "bg-green-50", }; export const Categories: Component = () => { const { categories } = useSearchImageContext(); - createEffect(() => { - console.log(categories()); - }); - return ( -
+
{([category, group]) => (
-

- {category}: {group.length} -

+

{category}s

+

{group.length}

)}