@@ -19,7 +19,7 @@ const withoutBranchLabels = templateExtend(TemplateName.Metro, {
19
19
20
20
storiesOf ( "gitgraph-react/6. Custom renders" , module )
21
21
. add ( "with render dot" , ( ) => {
22
- const renderDot : CommitOptions [ "renderDot" ] = ( commit ) => (
22
+ const renderDot : CommitOptions [ "renderDot" ] = ( commit : any ) => (
23
23
< svg
24
24
xmlns = "http://www.w3.org/2000/svg"
25
25
viewBox = "0 0 71.84 75.33"
@@ -59,7 +59,7 @@ storiesOf("gitgraph-react/6. Custom renders", module)
59
59
) ;
60
60
} )
61
61
. add ( "with render tooltip" , ( ) => {
62
- const renderTooltip : CommitOptions [ "renderTooltip" ] = ( commit ) => {
62
+ const renderTooltip : CommitOptions [ "renderTooltip" ] = ( commit : any ) => {
63
63
const commitSize = commit . style . dot . size * 2 ;
64
64
return (
65
65
< g transform = { `translate(${ commitSize + 10 } , ${ commitSize / 2 } )` } >
@@ -113,7 +113,7 @@ storiesOf("gitgraph-react/6. Custom renders", module)
113
113
) ;
114
114
} )
115
115
. add ( "with render message" , ( ) => {
116
- const renderMessage : CommitOptions [ "renderMessage" ] = ( commit ) => {
116
+ const renderMessage : CommitOptions [ "renderMessage" ] = ( commit : any ) => {
117
117
return (
118
118
< text
119
119
y = { commit . style . dot . size }
@@ -151,7 +151,7 @@ storiesOf("gitgraph-react/6. Custom renders", module)
151
151
) ;
152
152
} )
153
153
. add ( "with render message (long)" , ( ) => {
154
- const renderMessage : CommitOptions [ "renderMessage" ] = ( commit ) => {
154
+ const renderMessage : CommitOptions [ "renderMessage" ] = ( commit : any ) => {
155
155
return (
156
156
< g transform = { `translate(0, ${ commit . style . dot . size } )` } >
157
157
< text fill = { commit . style . dot . color } alignmentBaseline = "central" >
@@ -197,7 +197,7 @@ storiesOf("gitgraph-react/6. Custom renders", module)
197
197
) ;
198
198
} )
199
199
. add ( "with render message (long & reverse orientation)" , ( ) => {
200
- const renderMessage : CommitOptions [ "renderMessage" ] = ( commit ) => {
200
+ const renderMessage : CommitOptions [ "renderMessage" ] = ( commit : any ) => {
201
201
return (
202
202
< g transform = { `translate(0, ${ commit . style . dot . size } )` } >
203
203
< text fill = { commit . style . dot . color } alignmentBaseline = "central" >
@@ -248,7 +248,7 @@ storiesOf("gitgraph-react/6. Custom renders", module)
248
248
) ;
249
249
} )
250
250
. add ( "with render branch label" , ( ) => {
251
- const renderLabel : BranchOptions [ "renderLabel" ] = ( branch ) => {
251
+ const renderLabel : BranchOptions [ "renderLabel" ] = ( branch : any ) => {
252
252
return (
253
253
< text
254
254
alignmentBaseline = "middle"
@@ -281,7 +281,7 @@ storiesOf("gitgraph-react/6. Custom renders", module)
281
281
) ;
282
282
} )
283
283
. add ( "with render tag" , ( ) => {
284
- const renderTag : TagOptions [ "render" ] = ( name , style ) => {
284
+ const renderTag : TagOptions [ "render" ] = ( name : any , style : any ) => {
285
285
return (
286
286
< text style = { { font : style . font } } fill = { style . bgColor } y = { 6 } >
287
287
🎷 { name }
0 commit comments