From 7874439e4c87a41db14f103e2a14ccd6cd72709e Mon Sep 17 00:00:00 2001 From: gorkem-bwl Date: Fri, 16 Jan 2026 07:31:23 -0500 Subject: [PATCH] fix: address PR review feedback for icon migration - Use AlertCircle for error and AlertTriangle for warning icons - Use Icon color prop instead of CSS fill for Lucide stroke-based icons - Replace wildcard import with explicit named imports for tree-shaking - Replace sx prop with style prop on Icon components - Add Trash2 to Icon component imports --- client/src/Components/v1/Alert/index.jsx | 2 +- client/src/Components/v1/Check/Check.jsx | 16 +- client/src/Components/v1/Icon/index.jsx | 138 +++++++++++++++++- client/src/Components/v1/Toast/index.jsx | 2 +- .../Components/MonitorList/index.jsx | 2 +- .../Create/Components/MonitorList/index.jsx | 2 +- 6 files changed, 144 insertions(+), 18 deletions(-) diff --git a/client/src/Components/v1/Alert/index.jsx b/client/src/Components/v1/Alert/index.jsx index 89416f5b1..dd3b2f9f2 100644 --- a/client/src/Components/v1/Alert/index.jsx +++ b/client/src/Components/v1/Alert/index.jsx @@ -18,7 +18,7 @@ const icons = { ), error: ( ), diff --git a/client/src/Components/v1/Check/Check.jsx b/client/src/Components/v1/Check/Check.jsx index 01a41879e..cc3749fda 100644 --- a/client/src/Components/v1/Check/Check.jsx +++ b/client/src/Components/v1/Check/Check.jsx @@ -39,17 +39,11 @@ const Check = ({ text, noHighlightText, variant = "info", outlined = false }) => size={20} /> ) : ( - path": { fill: colors[variant] }, - }} - > - - + )} ), diff --git a/client/src/Pages/Maintenance/CreateMaintenance/Components/MonitorList/index.jsx b/client/src/Pages/Maintenance/CreateMaintenance/Components/MonitorList/index.jsx index 3f606e4a2..2bf7a991f 100644 --- a/client/src/Pages/Maintenance/CreateMaintenance/Components/MonitorList/index.jsx +++ b/client/src/Pages/Maintenance/CreateMaintenance/Components/MonitorList/index.jsx @@ -17,7 +17,7 @@ const MonitorListItem = ({ monitor, onDelete }) => { onDelete(monitor)} /> diff --git a/client/src/Pages/StatusPage/Create/Components/MonitorList/index.jsx b/client/src/Pages/StatusPage/Create/Components/MonitorList/index.jsx index 81e6df6c5..349571fe8 100644 --- a/client/src/Pages/StatusPage/Create/Components/MonitorList/index.jsx +++ b/client/src/Pages/StatusPage/Create/Components/MonitorList/index.jsx @@ -35,7 +35,7 @@ const MonitorListItem = ({ { onDelete(monitor); }}