mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
Merge pull request #1709 from Charlesnorris509/main
Update Navigation.tsx
This commit is contained in:
@@ -327,7 +327,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
|
||||
key={conversation.id}
|
||||
conversation={conversation}
|
||||
selectConversation={(id) => handleConversationClick(id)}
|
||||
onCoversationClick={() => {
|
||||
onConversationClick={() => {
|
||||
if (isMobile) {
|
||||
setNavOpen(false);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ interface ConversationProps {
|
||||
interface ConversationTileProps {
|
||||
conversation: ConversationProps;
|
||||
selectConversation: (arg1: string) => void;
|
||||
onCoversationClick: () => void; //Callback to handle click on conversation tile regardless of selected or not
|
||||
onConversationClick: () => void; //Callback to handle click on conversation tile regardless of selected or not
|
||||
onDeleteConversation: (arg1: string) => void;
|
||||
onSave: ({ name, id }: ConversationProps) => void;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ interface ConversationTileProps {
|
||||
export default function ConversationTile({
|
||||
conversation,
|
||||
selectConversation,
|
||||
onCoversationClick,
|
||||
onConversationClick,
|
||||
onDeleteConversation,
|
||||
onSave,
|
||||
}: ConversationTileProps) {
|
||||
@@ -188,7 +188,7 @@ export default function ConversationTile({
|
||||
}
|
||||
}}
|
||||
onClick={() => {
|
||||
onCoversationClick();
|
||||
onConversationClick();
|
||||
conversationId !== conversation.id &&
|
||||
selectConversation(conversation.id);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user