From 7948e4b2e08773e4dd8602185824669857aadff0 Mon Sep 17 00:00:00 2001 From: GurTati <118075413+gurtatiLND@users.noreply.github.com> Date: Mon, 9 Dec 2024 23:09:16 +0000 Subject: [PATCH] refactor: add styles --- src/app/toolkit/components/CategoriesBar.tsx | 112 +++++++++++++------ src/app/toolkit/components/ToolList.tsx | 2 +- 2 files changed, 80 insertions(+), 34 deletions(-) diff --git a/src/app/toolkit/components/CategoriesBar.tsx b/src/app/toolkit/components/CategoriesBar.tsx index 2c8df0d1..2d30e381 100644 --- a/src/app/toolkit/components/CategoriesBar.tsx +++ b/src/app/toolkit/components/CategoriesBar.tsx @@ -35,7 +35,7 @@ function CategoriesBar({ openModal, refreshCategories }: CategoriesBarProps) { } }; fetchCategories(); - }, [refreshCategories]); + }, [refreshCategories, database]); const handleCategoriesClick = (category: string) => { setSelectedCategories( @@ -46,39 +46,85 @@ function CategoriesBar({ openModal, refreshCategories }: CategoriesBarProps) { }; return ( -
-
+ + {/* Scrollable Categories */} +
+
); -}; +} + +// return ( +//
+//
+// ); +// }; export default CategoriesBar; diff --git a/src/app/toolkit/components/ToolList.tsx b/src/app/toolkit/components/ToolList.tsx index e70c42cc..5a441c00 100644 --- a/src/app/toolkit/components/ToolList.tsx +++ b/src/app/toolkit/components/ToolList.tsx @@ -41,7 +41,7 @@ export default function ToolkitList() { } }; fetchData(); - }, []); + }, [database]); // Toggle item `checked` state const handleToggle = (id: string) => {