mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-04-09 22:50:17 -04:00
remove unnecessary code
This commit is contained in:
parent
90c49e2c02
commit
2dda93e0b9
|
@ -1,15 +1,9 @@
|
||||||
// from node_modules/react/index.d.ts: global -> JSX -> IntrinsicElements
|
|
||||||
type h1Props = React.DetailedHTMLProps<
|
|
||||||
React.HTMLAttributes<HTMLHeadingElement>,
|
|
||||||
HTMLHeadingElement
|
|
||||||
>;
|
|
||||||
|
|
||||||
export default function PrimaryHeader({
|
export default function PrimaryHeader({
|
||||||
children,
|
children,
|
||||||
...props
|
...props
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
} & h1Props) {
|
} & JSX.IntrinsicElements['h1']) {
|
||||||
return (
|
return (
|
||||||
<h1 className='my-4' {...props}>
|
<h1 className='my-4' {...props}>
|
||||||
{children}
|
{children}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user