Pārlūkot izejas kodu

Fix Navbar prop types

Tatiana Inama 7 gadi atpakaļ
vecāks
revīzija
9c954f287e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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){