diff --git a/src/components/Conversations/Conversation copy.jsx b/src/components/Conversations/Conversation copy.jsx deleted file mode 100644 index 5d7cf710eb..0000000000 --- a/src/components/Conversations/Conversation copy.jsx +++ /dev/null @@ -1,108 +0,0 @@ -import React from 'react'; -import RenameButton from './RenameButton'; -import DeleteButton from './DeleteButton'; -import { useSelector, useDispatch } from 'react-redux'; -import { setConversation } from '~/store/convoSlice'; -import { setMessages } from '~/store/messageSlice'; -import { setText } from '~/store/textSlice'; -import manualSWR from '~/utils/fetchers'; - -{ - /*
*/ -} - -export default function Conversation({ id, parentMessageId, title = 'New conversation' }) { - const dispatch = useDispatch(); - const { conversationId } = useSelector((state) => state.convo); - const { trigger, isMutating } = manualSWR(`http://localhost:3050/messages/${id}`, 'get'); - - const clickHandler = async () => { - if (conversationId === id) { - return; - } - - dispatch(setConversation({ error: false, conversationId: id, parentMessageId })); - const data = await trigger(); - dispatch(setMessages(data)); - dispatch(setText('')); - }; - - const aProps = { - 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' - }; - - if (conversationId !== id) { - aProps.className = - 'group relative flex cursor-pointer items-center gap-3 break-all rounded-md py-3 px-3 hover:bg-[#2A2B32] hover:pr-4'; - } - - return ( -
- - - - -
- - -
-
- ); -} diff --git a/src/components/Conversations/Conversation.jsx b/src/components/Conversations/Conversation.jsx index a1f088e3b4..fc83042bef 100644 --- a/src/components/Conversations/Conversation.jsx +++ b/src/components/Conversations/Conversation.jsx @@ -83,7 +83,7 @@ export default function Conversation({ id, parentMessageId, conversationId, titl onKeyPress={handleKeyPress} /> ) : ( - title + titleInput )} {conversationId === id ? ( diff --git a/src/style.css b/src/style.css index d4c791cc89..7257b0de63 100644 --- a/src/style.css +++ b/src/style.css @@ -23,7 +23,7 @@ } .cursorBlink { - animation: blink 1.5s linear infinite; + animation: blink 1s linear infinite; } @keyframes blink { 0% {