Ver código fonte

Fix Navbar prop types

Tatiana Inama 7 anos atrás
pai
commit
9c954f287e
1 arquivos alterados com 1 adições e 1 exclusões
  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){