File tree 2 files changed +14
-7
lines changed
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';
15
15
export type VisibleButtonProps = {
16
16
title : string ;
17
17
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
+ } > ;
24
31
iconName ?: string ;
25
32
iconSize ?: number ;
26
33
color ?: ColorValue ;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ describe('HeaderButtons', () => {
71
71
const IoniconsHeaderButton = ( props : HeaderButtonProps ) => (
72
72
< HeaderButton
73
73
{ ...props }
74
- IconComponent = { ( { name } ) => < Text > { name } </ Text > }
74
+ IconComponent = { ( { name } : { name : any } ) => < Text > { name } </ Text > }
75
75
iconSize = { 23 }
76
76
color = "blue"
77
77
/>
You can’t perform that action at this time.
0 commit comments