File tree 2 files changed +11
-2
lines changed
packages/components/transcript-editor
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ class TranscriptEditor extends React.Component {
463
463
settings = { settings }
464
464
shortcuts = { shortcuts }
465
465
exportOptions = { exportOptions }
466
- tooltip = { HowDoesThisWork }
466
+ tooltip = { HowDoesThisWork ( this . props . handleAnalyticsEvents ) }
467
467
mediaUrl = { this . props . mediaUrl }
468
468
mediaControls = { this . videoRef . current ? mediaControls : null }
469
469
handleSettingsToggle = { this . handleSettingsToggle }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const helpMessage = (
37
37
</ div >
38
38
) ;
39
39
40
- const HowDoesThisWork = (
40
+ const HowDoesThisWork = ( handleAnalyticsEvents ) => (
41
41
< Tooltip
42
42
className = { style . help }
43
43
content = { helpMessage }
@@ -48,6 +48,15 @@ const HowDoesThisWork = (
48
48
border = { '#ffffff' }
49
49
background = { '#f2f2f2' }
50
50
color = { '#000000' }
51
+ onMouseOver = { ( ) => {
52
+ if ( handleAnalyticsEvents ) {
53
+ handleAnalyticsEvents ( {
54
+ category : "TranscriptEditor" ,
55
+ action : "hover" ,
56
+ name : "howDoesThisWork"
57
+ } ) ;
58
+ }
59
+ } }
51
60
>
52
61
< FontAwesomeIcon className = { style . icon } icon = { faQuestionCircle } />
53
62
How does this work?
You can’t perform that action at this time.
0 commit comments