mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 01:21:48 +03:00
feat: Remove chat id from chat list (#1031)
* update hover color : blue for modifying and red for delete * remove chat id from chat lists
This commit is contained in:
parent
56bde0976e
commit
d36217be80
@ -45,15 +45,20 @@ export const ChatsListItem = ({ chat }: ChatsListItemProps): JSX.Element => {
|
||||
name={chatName}
|
||||
/>
|
||||
</div>
|
||||
<div className="grid-cols-2 text-xs opacity-50 whitespace-nowrap">
|
||||
{chat.chat_id}
|
||||
</div>
|
||||
</Link>
|
||||
<div className="opacity-0 group-hover:opacity-100 flex items-center justify-center hover:text-red-700 bg-gradient-to-l from-white dark:from-black to-transparent z-10 transition-opacity">
|
||||
<button className="p-0" type="button" onClick={handleEditNameClick}>
|
||||
<div className="opacity-0 group-hover:opacity-100 flex items-center justify-center bg-gradient-to-l from-white dark:from-black to-transparent z-10 transition-opacity">
|
||||
<button
|
||||
className="p-0 hover:text-blue-700"
|
||||
type="button"
|
||||
onClick={handleEditNameClick}
|
||||
>
|
||||
{editingName ? <FiSave /> : <FiEdit />}
|
||||
</button>
|
||||
<button className="p-5" type="button" onClick={() => void deleteChat()}>
|
||||
<button
|
||||
className="p-5 hover:text-red-700"
|
||||
type="button"
|
||||
onClick={() => void deleteChat()}
|
||||
>
|
||||
<FiTrash2 />
|
||||
</button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user