Skip to content

Commit

Permalink
Update ConversationTile.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Oct 26, 2023
1 parent 678fd28 commit 08a7e66
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions frontend/src/conversation/ConversationTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import CheckMark from '../assets/checkmark.svg';
import Trash from '../assets/trash.svg';

import { selectConversationId } from '../preferences/preferenceSlice';
import { useOutsideAlerter } from '../hooks';

interface ConversationProps {
name: string;
Expand All @@ -31,15 +30,15 @@ export default function ConversationTile({

const [isEdit, setIsEdit] = useState(false);
const [conversationName, setConversationsName] = useState('');
useOutsideAlerter(
tileRef,
() =>
handleSaveConversation({
id: conversationId || conversation.id,
name: conversationName,
}),
[conversationName],
);
// useOutsideAlerter(
// tileRef,
// () =>
// handleSaveConversation({
// id: conversationId || conversation.id,
// name: conversationName,
// }),
// [conversationName],
// );

useEffect(() => {
setConversationsName(conversation.name);
Expand Down

2 comments on commit 08a7e66

@vercel
Copy link

@vercel vercel bot commented on 08a7e66 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextra-docsgpt – ./docs

nextra-docsgpt-git-main-arc53.vercel.app
nextra-docsgpt-arc53.vercel.app
nextra-docsgpt.vercel.app
docs.docsgpt.co.uk

@vercel
Copy link

@vercel vercel bot commented on 08a7e66 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-gpt – ./frontend

docs-gpt-arc53.vercel.app
docs-gpt-git-main-arc53.vercel.app
docs-gpt-brown.vercel.app

Please sign in to comment.