1- import React , { FC , HTMLProps } from 'react' ;
1+ import React from 'react' ;
22import classNames from 'classnames' ;
33import { Container , Row , Col } from '../../layout' ;
44import HeadingLevel , { HeadingLevelType } from '@components/utils/HeadingLevel' ;
55
6- interface HeroContentProps extends HTMLProps < HTMLDivElement > {
6+ interface HeroContentProps extends React . HTMLProps < HTMLDivElement > {
77 hasImage : boolean ;
88}
99
10- const HeroContent : FC < HeroContentProps > = ( { children, hasImage } ) => {
10+ const HeroContent : React . FC < HeroContentProps > = ( { children, hasImage } ) => {
1111 if ( ! children ) {
1212 return null ;
1313 }
@@ -29,29 +29,29 @@ const HeroContent: FC<HeroContentProps> = ({ children, hasImage }) => {
2929 ) ;
3030} ;
3131
32- interface HeroHeadingProps extends HTMLProps < HTMLHeadingElement > {
32+ interface HeroHeadingProps extends React . HTMLProps < HTMLHeadingElement > {
3333 headingLevel ?: HeadingLevelType ;
3434}
3535
36- const HeroHeading : FC < HeroHeadingProps > = ( { className, headingLevel = 'h1' , ...rest } ) => (
36+ const HeroHeading : React . FC < HeroHeadingProps > = ( { className, headingLevel = 'h1' , ...rest } ) => (
3737 < HeadingLevel
3838 className = { classNames ( 'nhsuk-u-margin-bottom-3' , className ) }
3939 headingLevel = { headingLevel }
4040 { ...rest }
4141 />
4242) ;
4343
44- const HeroText : FC < HTMLProps < HTMLParagraphElement > > = ( { className, ...rest } ) => (
44+ const HeroText : React . FC < React . HTMLProps < HTMLParagraphElement > > = ( { className, ...rest } ) => (
4545 < p className = { classNames ( 'nhsuk-body-l nhsuk-u-margin-bottom-0' , className ) } { ...rest } />
4646) ;
4747
48- interface HeroProps extends HTMLProps < HTMLDivElement > {
48+ interface HeroProps extends React . HTMLProps < HTMLDivElement > {
4949 imageSrc ?: string ;
5050}
5151
52- interface Hero extends FC < HeroProps > {
53- Heading : FC < HeroHeadingProps > ;
54- Text : FC < HTMLProps < HTMLParagraphElement > > ;
52+ interface Hero extends React . FC < HeroProps > {
53+ Heading : React . FC < HeroHeadingProps > ;
54+ Text : React . FC < React . HTMLProps < HTMLParagraphElement > > ;
5555}
5656
5757const Hero : Hero = ( { className, children, imageSrc, ...rest } ) => (
0 commit comments