File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/components/warning-callout Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React, { HTMLProps } from 'react';
22import classNames from 'classnames' ;
33
44interface WarningCalloutProps extends HTMLProps < HTMLDivElement > {
5- labelProps : HTMLProps < HTMLHeadingElement > ;
5+ labelProps ? : HTMLProps < HTMLHeadingElement > ;
66}
77
88const WarningCallout : React . FC < WarningCalloutProps > = ( {
@@ -15,7 +15,7 @@ const WarningCallout: React.FC<WarningCalloutProps> = ({
1515 < div className = { classNames ( 'nhsuk-warning-callout' , className ) } { ...rest } >
1616 { label ? (
1717 < h3
18- className = { classNames ( 'nhsuk-warning-callout__label' , labelProps . className ) }
18+ className = { classNames ( 'nhsuk-warning-callout__label' , labelProps ? .className ) }
1919 { ...labelProps }
2020 >
2121 { label }
@@ -25,8 +25,4 @@ const WarningCallout: React.FC<WarningCalloutProps> = ({
2525 </ div >
2626) ;
2727
28- WarningCallout . defaultProps = {
29- labelProps : { } ,
30- } ;
31-
3228export default WarningCallout ;
You can’t perform that action at this time.
0 commit comments