Fix: Close nav bar on conversation click

This commit is contained in:
shatanikmahanty
2024-10-07 10:12:18 +05:30
parent 601ba40cb0
commit 27f97bc55d
2 changed files with 4 additions and 0 deletions

View File

@@ -280,6 +280,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
key={conversation.id}
conversation={conversation}
selectConversation={(id) => handleConversationClick(id)}
onCoversationClick={() => {if (isMobile) { setNavOpen(false) }}}
onDeleteConversation={(id) => handleDeleteConversation(id)}
onSave={(conversation) =>
updateConversationName(conversation)