File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,11 @@ export default class Link extends React.PureComponent {
53
53
}
54
54
55
55
render ( ) {
56
+ const { styles } = this . props ;
56
57
return (
57
58
< path
58
59
ref = { ( l ) => { this . link = l ; } }
59
- style = { this . state . initialStyle }
60
+ style = { { ... this . state . initialStyle , ... styles } }
60
61
className = "linkBase"
61
62
d = { this . drawPath ( ) }
62
63
/>
@@ -75,4 +76,5 @@ Link.propTypes = {
75
76
'elbow' ,
76
77
] ) . isRequired ,
77
78
transitionDuration : PropTypes . number . isRequired ,
79
+ styles : PropTypes . object . isRequired ,
78
80
} ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ describe('<Link />', () => {
20
20
pathFunc : 'diagonal' ,
21
21
orientation : 'horizontal' ,
22
22
transitionDuration : 500 ,
23
+ styles : { } ,
23
24
} ;
24
25
25
26
You can’t perform that action at this time.
0 commit comments