@@ -35,7 +35,7 @@ const CTA = ({ style, type, ...cta }) => {
35
35
href = { cta . href }
36
36
icon = { _iconSelector ( type ) }
37
37
target = { _external ( type ) }
38
- onMouseDown = { e => _jump ( e , type ) }
38
+ handleClick = { e => _jump ( e , type ) }
39
39
/>
40
40
) ;
41
41
case 'button' :
@@ -53,7 +53,7 @@ const CTA = ({ style, type, ...cta }) => {
53
53
< LinkWithIcon
54
54
href = { cta . href }
55
55
target = { _external ( type ) }
56
- onMouseDown = { e => _jump ( e , type ) } >
56
+ onClick = { e => _jump ( e , type ) } >
57
57
{ cta . copy }
58
58
< Icon />
59
59
</ LinkWithIcon >
@@ -101,7 +101,7 @@ const _iconSelector = type =>
101
101
const _renderButtons = ( { buttons } ) =>
102
102
buttons . map ( button => {
103
103
button . renderIcon = _iconSelector ( button . type ) ;
104
- button . onMouseDown = e => _jump ( e , button . type ) ;
104
+ button . onClick = e => _jump ( e , button . type ) ;
105
105
button . target = _external ( button . type ) ;
106
106
return button ;
107
107
} ) ;
@@ -115,7 +115,7 @@ const _renderButtons = ({ buttons }) =>
115
115
*/
116
116
const _renderFeatureCard = featureCard => {
117
117
featureCard . icon = _iconSelector ( featureCard . type ) ;
118
- featureCard . onMouseDown = e => _jump ( e , featureCard . type ) ;
118
+ featureCard . handleClick = e => _jump ( e , featureCard . type ) ;
119
119
featureCard . target = _external ( featureCard . type ) ;
120
120
return featureCard ;
121
121
} ;
0 commit comments