From 4a0d32a42ed509b331cc93d3a70a4626ac9608eb Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Mon, 11 Jan 2021 19:25:45 -0500 Subject: [PATCH] Add h1 props to PrimaryHeader --- src/components/PrimaryHeader.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/PrimaryHeader.tsx b/src/components/PrimaryHeader.tsx index 868b4e6..1291b50 100644 --- a/src/components/PrimaryHeader.tsx +++ b/src/components/PrimaryHeader.tsx @@ -1,7 +1,18 @@ +// from node_modules/react/index.d.ts: global -> JSX -> IntrinsicElements +type h1Props = React.DetailedHTMLProps< + React.HTMLAttributes, + HTMLHeadingElement +>; + export default function PrimaryHeader({ children, + ...props }: { children: React.ReactNode; -}) { - return

{children}

; +} & h1Props) { + return ( +

+ {children} +

+ ); }