From ae42edb8d7a6ab7a9dac9892113f8bf922b821f3 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Fri, 27 Dec 2024 14:42:40 +0800 Subject: [PATCH] remove test code --- .../components/header/account-setting/index.tsx | 4 ---- .../plugins/plugin-detail-panel/index.tsx | 16 +++++++++------- .../multiple-tool-selector/index.tsx | 13 +++++++++++++ 3 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx diff --git a/web/app/components/header/account-setting/index.tsx b/web/app/components/header/account-setting/index.tsx index 90a441a72d..b3409c226a 100644 --- a/web/app/components/header/account-setting/index.tsx +++ b/web/app/components/header/account-setting/index.tsx @@ -36,10 +36,6 @@ const iconClassName = ` w-5 h-5 mr-2 ` -const scrolledClassName = ` - border-b shadow-xs bg-white/[.98] -` - type IAccountSettingProps = { onCancel: () => void activeTab?: string diff --git a/web/app/components/plugins/plugin-detail-panel/index.tsx b/web/app/components/plugins/plugin-detail-panel/index.tsx index fcc31b938d..d14c0d96be 100644 --- a/web/app/components/plugins/plugin-detail-panel/index.tsx +++ b/web/app/components/plugins/plugin-detail-panel/index.tsx @@ -62,13 +62,15 @@ const PluginDetailPanel: FC = ({ {!!detail.declaration.agent_strategy && } {!!detail.declaration.endpoint && } {!!detail.declaration.model && } -
- testChange(item)} - onDelete={testDelete} - /> -
+ {false && ( +
+ testChange(item)} + onDelete={testDelete} + /> +
+ )} )} diff --git a/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx new file mode 100644 index 0000000000..bbf5a8a1ef --- /dev/null +++ b/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx @@ -0,0 +1,13 @@ +import React from 'react' + +type Props = { + value: any[] +} + +const MultipleToolSelector = ({ value }: Props) => { + return ( +
+ ) +} + +export default MultipleToolSelector