AxL95 commited on
Commit
0351a44
·
verified ·
1 Parent(s): ee9cca2

Update frontend/src/components/Panel.jsx

Browse files
Files changed (1) hide show
  1. frontend/src/components/Panel.jsx +3 -4
frontend/src/components/Panel.jsx CHANGED
@@ -9,20 +9,19 @@ const Panel = ({
9
  onToggleCollapse,
10
  isCollapsed,
11
  onNewChat,
12
- userName, // Nouvelle prop pour le nom d'utilisateur
13
- onLogout // Nouvelle prop pour la fonction de déconnexion
14
  }) => {
15
 
16
 
17
 
18
- // Fonctions existantes
19
  const createNewChat = () => {
20
  onNewChat();
21
  };
22
 
23
  const deleteConversation = async (conversationId) => {
24
  try {
25
- const response = await fetch(`http://localhost:7860/api/conversations/${conversationId}`, {
26
  method: 'DELETE',
27
  credentials: 'include',
28
  });
 
9
  onToggleCollapse,
10
  isCollapsed,
11
  onNewChat,
12
+ userName,
13
+ onLogout
14
  }) => {
15
 
16
 
17
 
 
18
  const createNewChat = () => {
19
  onNewChat();
20
  };
21
 
22
  const deleteConversation = async (conversationId) => {
23
  try {
24
+ const response = await fetch(`/api/conversations/${conversationId}`, {
25
  method: 'DELETE',
26
  credentials: 'include',
27
  });