From 1257c49d969fea1a07ba317688993e7bf00502fc Mon Sep 17 00:00:00 2001 From: suyao Date: Tue, 3 Jun 2025 22:51:00 +0800 Subject: [PATCH] refactor: simplify ToolSettings component layout - Removed the SettingContainer wrapper for improved readability. - Cleaned up imports and streamlined the rendering logic for WebSearchSettings and PreprocessSettings. --- src/renderer/src/pages/settings/ToolSettings/index.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/renderer/src/pages/settings/ToolSettings/index.tsx b/src/renderer/src/pages/settings/ToolSettings/index.tsx index 7b6517880..b73c5da80 100644 --- a/src/renderer/src/pages/settings/ToolSettings/index.tsx +++ b/src/renderer/src/pages/settings/ToolSettings/index.tsx @@ -1,13 +1,11 @@ import { GlobalOutlined } from '@ant-design/icons' import { HStack } from '@renderer/components/Layout' import ListItem from '@renderer/components/ListItem' -import { theme } from 'antd' import { FileCode } from 'lucide-react' import { FC, useState } from 'react' import { useTranslation } from 'react-i18next' import styled from 'styled-components' -import { SettingContainer } from '..' import PreprocessSettings from './PreprocessSettings' import WebSearchSettings from './WebSearchSettings' @@ -33,11 +31,9 @@ const ToolSettings: FC = () => { /> ))} - - {menu == 'web-search' && } - {menu == 'preprocess' && } - {/* {menu == 'ocr' && } */} - + {menu == 'web-search' && } + {menu == 'preprocess' && } + {/* {menu == 'ocr' && } */} ) }