Spaces:
Runtime error
Runtime error
refactor: remove unnecessary header from ChatList component
Browse files
src/components/ChatList.jsx
CHANGED
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
| 3 |
function ChatList({ chats, currentChat, onSelectChat, onDeleteChat, onCreateNewChat, collapsed }) {
|
| 4 |
return (
|
| 5 |
<div className="chat-list">
|
| 6 |
-
<h2>Conversations</h2>
|
| 7 |
<button className="new-chat" onClick={onCreateNewChat}>
|
| 8 |
New Chat
|
| 9 |
</button>
|
|
@@ -33,4 +32,4 @@ function ChatList({ chats, currentChat, onSelectChat, onDeleteChat, onCreateNewC
|
|
| 33 |
);
|
| 34 |
}
|
| 35 |
|
| 36 |
-
export default ChatList;
|
|
|
|
| 3 |
function ChatList({ chats, currentChat, onSelectChat, onDeleteChat, onCreateNewChat, collapsed }) {
|
| 4 |
return (
|
| 5 |
<div className="chat-list">
|
|
|
|
| 6 |
<button className="new-chat" onClick={onCreateNewChat}>
|
| 7 |
New Chat
|
| 8 |
</button>
|
|
|
|
| 32 |
);
|
| 33 |
}
|
| 34 |
|
| 35 |
+
export default ChatList;
|