Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/components/Chat/ConversationList.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -46,9 +46,12 @@ const ConversationList: React.FC = () => {
};

// 取消编辑
const cancelEditing = () => {
setEditingId(null);
};
// 修改导入语句(第2行)
// 删除未使用的 cancelEditing 函数(第49-51行)
// 注释掉或删除以下代码:
// const cancelEditing = () => {
// setEditingId(null);
// };

// 确认删除
const showDeleteConfirm = (conversationId: string) => {
Expand Down
Loading