File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,19 @@ import type { ComponentProps, ReactNode } from 'react';
1515export type VisibleButtonProps = {
1616 title : string ;
1717
18- IconComponent ?: React . ComponentType < {
19- name : any ; // TODO generify to support icon names
20- style ?: any ;
21- color ?: ColorValue ;
22- size ?: number ;
23- } > ;
18+ IconComponent ?:
19+ | React . ComponentType < {
20+ name : any ; // TODO generify to support icon names
21+ style ?: any ;
22+ size ?: number ;
23+ color ?: ColorValue ;
24+ } >
25+ | React . ComponentType < {
26+ name : any ; // TODO generify to support icon names
27+ style ?: any ;
28+ size ?: number ;
29+ color ?: ColorValue | number ;
30+ } > ;
2431 iconName ?: string ;
2532 iconSize ?: number ;
2633 color ?: ColorValue ;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ describe('HeaderButtons', () => {
7171 const IoniconsHeaderButton = ( props : HeaderButtonProps ) => (
7272 < HeaderButton
7373 { ...props }
74- IconComponent = { ( { name } ) => < Text > { name } </ Text > }
74+ IconComponent = { ( { name } : { name : any } ) => < Text > { name } </ Text > }
7575 iconSize = { 23 }
7676 color = "blue"
7777 />
You can’t perform that action at this time.
0 commit comments