Explorar o código

Fix Navbar prop types

Tatiana Inama %!s(int64=7) %!d(string=hai) anos
pai
achega
9c954f287e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      recipes/src/components/Navbar/index.tsx

+ 1 - 1
recipes/src/components/Navbar/index.tsx

@@ -8,7 +8,7 @@ type NavbarProps = {
     label: string,
     onClick: () => void,
   }[],
-  children?: ReactElement[],
+  children?: ReactElement | ReactElement[],
   contentClassName?: string,
 }
 export default function Navbar(props: NavbarProps){