File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,13 @@ export interface CardFooterBaseProps {
3939
4040const b = block ( 'card-base-block' ) ;
4141
42- const Header : ( props : React . PropsWithChildren < CardHeaderBaseProps > ) => React . ReactNode = ( ) => null ;
43- const Content : ( props : React . PropsWithChildren < { } > ) => React . ReactNode = ( ) => null ;
44- const Footer : ( props : React . PropsWithChildren < CardFooterBaseProps > ) => React . ReactNode = ( ) => null ;
42+ const Header : (
43+ props : React . PropsWithChildren < CardHeaderBaseProps > ,
44+ ) => React . ReactElement | null = ( ) => null ;
45+ const Content : ( props : React . PropsWithChildren < { } > ) => React . ReactElement | null = ( ) => null ;
46+ const Footer : (
47+ props : React . PropsWithChildren < CardFooterBaseProps > ,
48+ ) => React . ReactElement | null = ( ) => null ;
4549
4650export const Layout = ( props : CardBasePropsType ) => {
4751 const {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import './MediaBase.scss';
1212
1313const b = block ( 'media-base' ) ;
1414
15- const Card : ( props : React . PropsWithChildren < { } > ) => React . ReactNode = ( ) => null ;
15+ const Card : ( props : React . PropsWithChildren < { } > ) => React . ReactElement | null = ( ) => null ;
1616
1717interface MediaBaseProps extends MediaBaseBlockProps {
1818 children : React . ReactElement ;
You can’t perform that action at this time.
0 commit comments