From 297900edda4a739d246e166c809d4aa8695b3333 Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751NSS@gmail.com> Date: Tue, 11 Mar 2025 16:19:20 +0545 Subject: [PATCH] fix: warp package --- src/components/Chat/ConversationList.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/Chat/ConversationList.tsx b/src/components/Chat/ConversationList.tsx index e5f9968..c666ef9 100644 --- a/src/components/Chat/ConversationList.tsx +++ b/src/components/Chat/ConversationList.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { List, Button, Typography, Dropdown, Input, Modal, Space, Tooltip } from 'antd'; +import { List, Button, Typography, Dropdown, Input, Modal } from 'antd'; import { PlusOutlined, EditOutlined, @@ -46,9 +46,12 @@ const ConversationList: React.FC = () => { }; // 取消编辑 - const cancelEditing = () => { - setEditingId(null); - }; + // 修改导入语句(第2行) + // 删除未使用的 cancelEditing 函数(第49-51行) + // 注释掉或删除以下代码: + // const cancelEditing = () => { + // setEditingId(null); + // }; // 确认删除 const showDeleteConfirm = (conversationId: string) => {