moelove commited on
Commit
f2fe7c8
·
1 Parent(s): 77aaa1f

refactor: remove unnecessary header from ChatList component

Browse files
Files changed (1) hide show
  1. src/components/ChatList.jsx +1 -2
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;