mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-09 20:18:50 +01:00
convo successfully changes on convo click
This commit is contained in:
parent
d35ed31b20
commit
c7c50dbbab
9 changed files with 76 additions and 25 deletions
|
|
@ -1,8 +1,16 @@
|
|||
import React from 'react';
|
||||
|
||||
export default function Conversation({ id, title = 'New conversation'}) {
|
||||
export default function Conversation({
|
||||
id,
|
||||
parentMessageId,
|
||||
convoHandler,
|
||||
title = 'New conversation'
|
||||
}) {
|
||||
return (
|
||||
<a className="animate-flash group relative flex cursor-pointer items-center gap-3 break-all rounded-md bg-gray-800 py-3 px-3 pr-14 hover:bg-gray-800">
|
||||
<a
|
||||
onClick={() => convoHandler(id, parentMessageId)}
|
||||
className="animate-flash group relative flex cursor-pointer items-center gap-3 break-all rounded-md bg-gray-800 py-3 px-3 pr-14 hover:bg-gray-800"
|
||||
>
|
||||
<svg
|
||||
stroke="currentColor"
|
||||
fill="none"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue