From b56fea49caef44693215b1533371b26f1c926a55 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Tue, 2 Jul 2024 16:25:15 +0800 Subject: [PATCH] feat: edit agent --- .../components/Popups/AgentSettingPopup.tsx | 11 +++-- .../src/pages/home/components/Agents.tsx | 45 +++++++++++++------ 2 files changed, 38 insertions(+), 18 deletions(-) diff --git a/src/renderer/src/components/Popups/AgentSettingPopup.tsx b/src/renderer/src/components/Popups/AgentSettingPopup.tsx index a9877122..1dfb5d3a 100644 --- a/src/renderer/src/components/Popups/AgentSettingPopup.tsx +++ b/src/renderer/src/components/Popups/AgentSettingPopup.tsx @@ -3,6 +3,7 @@ import { useState } from 'react' import { TopView } from '../TopView' import { Box } from '../Layout' import { Agent } from '@renderer/types' +import TextArea from 'antd/es/input/TextArea' interface AgentSettingPopupShowParams { agent: Agent @@ -32,13 +33,15 @@ const AgentSettingPopupContainer: React.FC = ({ agent, resolve }) => { return ( Agent name - setName(e.target.value)} allowClear autoFocus /> - Description - setName(e.target.value)} autoFocus /> + + Description + +