Fix: Add type to parameter in handlePostDocumentSelect callback

This commit is contained in:
shatanikmahanty
2024-10-07 21:14:13 +05:30
parent 27f97bc55d
commit f01c04bb24

View File

@@ -304,7 +304,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
isDocsListOpen={isDocsListOpen}
setIsDocsListOpen={setIsDocsListOpen}
handleDeleteClick={handleDeleteClick}
handlePostDocumentSelect={(doc) => {
handlePostDocumentSelect={(option?: string) => {
if (isMobile) {
setNavOpen(!navOpen)
}