From 4b016c908dda2019f3bf89e5a3d2eae535e5fbd2 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Thu, 18 Sep 2025 00:24:39 +0700
Subject: oioi

---
 front/src/components/Icon.tsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'front/src/components/Icon.tsx')

diff --git a/front/src/components/Icon.tsx b/front/src/components/Icon.tsx
index a316e08..797a87b 100644
--- a/front/src/components/Icon.tsx
+++ b/front/src/components/Icon.tsx
@@ -65,7 +65,7 @@ interface IconProps {
   size?: number;
   className?: string;
   title?: string;
-  onClick?: (e?: React.MouseEvent) => void;
+  onClick?: (e: React.MouseEvent) => any;
   color?: "primary" | "text" | "textSecondary" | "textMuted" | "custom";
   customColor?: string;
 }
@@ -84,7 +84,11 @@ const Icon: React.FC<IconProps> = ({
   // Simple filter based on theme - icons should match text
   const getFilter = () => {
     // For dark themes, invert the black SVGs to white
-    if (theme.name === "dark" || theme.name === "noir" || theme.name === "gruvbox") {
+    if (
+      theme.name === "dark" ||
+      theme.name === "noir" ||
+      theme.name === "gruvbox"
+    ) {
       return "invert(1)";
     }
     // For light themes with dark text, keep as is
@@ -130,4 +134,4 @@ const Icon: React.FC<IconProps> = ({
   );
 };
 
-export default Icon;
\ No newline at end of file
+export default Icon;
-- 
cgit v1.2.3

