From 0e94ea156f136e09c0c7b455e8127cfd0f3617fe Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Sun, 15 Feb 2026 20:44:43 +0100 Subject: [PATCH] Remove unused imports in Plugin & ToolPicker Clean up unused imports and variables: remove useMemo import from PluginSection, drop unused Badge and Text imports from ToolPicker, and remove unused workflow setters (setLeftPanelView, setReaderMode, setSearchQuery) from the ToolPicker destructure. These are housekeeping changes to address linter warnings and reduce dead code. --- .../shared/config/configSections/PluginSection.tsx | 2 +- frontend/src/core/components/tools/ToolPicker.tsx | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/core/components/shared/config/configSections/PluginSection.tsx b/frontend/src/core/components/shared/config/configSections/PluginSection.tsx index 407376df3a..1d815bb7b8 100644 --- a/frontend/src/core/components/shared/config/configSections/PluginSection.tsx +++ b/frontend/src/core/components/shared/config/configSections/PluginSection.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useMemo, useState } from "react"; +import React, { useEffect, useState } from "react"; import { Paper, Text, Group, Stack, Badge, Divider, Avatar, Tooltip } from "@mantine/core"; import { useTranslation } from "react-i18next"; import { usePluginRegistry } from "@app/contexts/PluginRegistryContext"; diff --git a/frontend/src/core/components/tools/ToolPicker.tsx b/frontend/src/core/components/tools/ToolPicker.tsx index b68af4ac3c..ba12c3c38f 100644 --- a/frontend/src/core/components/tools/ToolPicker.tsx +++ b/frontend/src/core/components/tools/ToolPicker.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useMemo, useRef } from "react"; -import { Badge, Box, Button, Stack, Text } from "@mantine/core"; +import { Box, Button, Stack } from "@mantine/core"; import { useTranslation } from "react-i18next"; import { ToolRegistryEntry } from "@app/data/toolsTaxonomy"; import "@app/components/tools/toolPicker/ToolPicker.css"; @@ -34,9 +34,6 @@ const ToolPicker = ({ selectedToolKey, onSelect, filteredTools, isSearching = fa const { favoriteTools, toolRegistry, - setLeftPanelView, - setReaderMode, - setSearchQuery, } = useToolWorkflow(); const favoriteToolItems = useFavoriteToolItems(favoriteTools, toolRegistry);