The Node.js® Website

fix: typo - typescript props type (#6513)

Fix typo

Signed-off-by: caykey <thecactivecake@gmail.com>

authored by caykey and committed by GitHub 9f0b6a5b 9d5f2eaf

Changed files
+2 -2
components
+2 -2
components/withLayout.tsx
··· 21 21 download: DownloadLayout, 22 22 } satisfies Record<Layouts, FC>; 23 23 24 - type WithLayouProps<L = Layouts> = PropsWithChildren<{ layout: L }>; 24 + type WithLayoutProps<L = Layouts> = PropsWithChildren<{ layout: L }>; 25 25 26 - const WithLayout: FC<WithLayouProps<Layouts>> = ({ layout, children }) => { 26 + const WithLayout: FC<WithLayoutProps<Layouts>> = ({ layout, children }) => { 27 27 const LayoutComponent = layouts[layout] ?? DefaultLayout; 28 28 29 29 return <LayoutComponent>{children}</LayoutComponent>;