File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @amnstak/react-image-annotate" ,
3
- "version" : " 0.0.11 " ,
3
+ "version" : " 0.0.16 " ,
4
4
"type" : " module" ,
5
5
"main" : " dist/lib.js" ,
6
6
"types" : " dist/lib.d.ts" ,
Original file line number Diff line number Diff line change @@ -22,14 +22,19 @@ const getIcon = (
22
22
return < Icon /> ;
23
23
} ;
24
24
25
- const StyledButton = styled ( Button ) ( ( ) => ( {
25
+ const StyledButton = styled (
26
+ forwardRef < HTMLButtonElement , React . ComponentProps < typeof Button > > ( ( props , ref ) => (
27
+ < Button ref = { ref } { ...props } />
28
+ ) )
29
+ ) ( ( ) => ( {
26
30
textTransform : "none" ,
27
31
width : 60 ,
28
32
paddingTop : 8 ,
29
33
paddingBottom : 4 ,
30
34
marginLeft : 1 ,
31
35
marginRight : 1 ,
32
36
} ) ) ;
37
+
33
38
const ButtonInnerContent = styled ( "div" ) ( ( ) => ( {
34
39
display : "flex" ,
35
40
flexDirection : "column" ,
You can’t perform that action at this time.
0 commit comments