File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/app/src/app/pages/Sandbox/Editor/Header/PrivacyTooltip Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- import React , { useEffect } from 'react' ;
1+ import React from 'react' ;
22import { useOvermind } from 'app/overmind' ;
33import { ThemeProvider } from 'styled-components' ;
44import Tooltip from '@codesandbox/common/lib/components/Tooltip' ;
@@ -20,10 +20,6 @@ export const PrivacyTooltip = () => {
2020 } ,
2121 } = useOvermind ( ) ;
2222
23- useEffect ( ( ) => {
24- track ( 'Open Sandbox Privacy Tooltip' , { owned } ) ;
25- } , [ owned ] ) ;
26-
2723 const config = {
2824 0 : {
2925 description : 'Everyone can see this Sandbox' ,
@@ -54,6 +50,9 @@ export const PrivacyTooltip = () => {
5450 < Tooltip
5551 delay = { 0 }
5652 interactive
53+ onShown = { ( ) => {
54+ track ( 'Open Sandbox Privacy Tooltip' , { owned } ) ;
55+ } }
5756 content = {
5857 < >
5958 < Text size = "3" marginBottom = { 4 } >
You can’t perform that action at this time.
0 commit comments