From b2850ea1456a189c456ebe2667feaa190fe150bc Mon Sep 17 00:00:00 2001 From: dwindown Date: Wed, 24 Sep 2025 19:21:28 +0700 Subject: [PATCH] fix: Remove unused variables to resolve ESLint errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔧 ESLint Fixes: - Remove unused 'categoryConfig' variable in Layout.js (line 167) - Remove unused 'isHome' variable in ToolSidebar.js (line 77) - Remove unused 'Sparkles' import in tools.js (line 1) ✅ Build Status: - All ESLint errors resolved - Build now compiles successfully - Ready for deployment 📁 Files Modified: - /src/components/Layout.js - Removed unused categoryConfig for NON_TOOLS - /src/components/ToolSidebar.js - Removed unused isHome for NON_TOOLS - /src/config/tools.js - Removed unused Sparkles import --- src/components/Layout.js | 1 - src/components/ToolSidebar.js | 1 - src/config/tools.js | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Layout.js b/src/components/Layout.js index 7f1b0823..66e211ef 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -164,7 +164,6 @@ const Layout = ({ children }) => { {/* Non-Tools Section */} {NON_TOOLS.map((tool) => { const IconComponent = tool.icon; - const categoryConfig = getCategoryConfig(tool.category); return ( { {filteredNonTools.map((tool) => { const IconComponent = tool.icon; const isActiveItem = isActive(tool.path); - const isHome = tool.path === '/'; return (