File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/app/src/app/pages/Sandbox/Editor/Header/MenuBar Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11import React , { useEffect , useRef } from 'react' ;
22import { vscode } from 'app/vscode' ;
33import './titlebar.css' ;
4+ import track from '@codesandbox/common/lib/utils/analytics' ;
45
56export const MenuBar = ( ) => {
67 const menuBarEl = useRef ( null ) ;
@@ -21,13 +22,17 @@ export const MenuBar = () => {
2122
2223 return (
2324 // Explicitly use inline styles here to override the vscode styles
25+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
2426 < div
2527 style = { {
2628 display : 'flex' ,
2729 alignItems : 'center' ,
2830 marginLeft : ' 0.5rem' ,
2931 } }
3032 className = "part titlebar"
33+ onClick = { ( ) => {
34+ track ( 'Editor - Click Menubar' ) ;
35+ } }
3136 >
3237 < div
3338 style = { {
You can’t perform that action at this time.
0 commit comments