File tree 1 file changed +3
-0
lines changed
apps/reactotron-app/src/renderer/components/AnalyticsOptOut
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import styled, { useTheme } from "styled-components"
3
3
import FadeIn from "react-fade-in"
4
4
import { reactotronAnalytics } from "../../images"
5
5
import configStore from "../../config"
6
+ import { useAnalytics } from "../../util/analyticsHelpers"
6
7
7
8
const Overlay = styled . div `
8
9
position: absolute;
@@ -62,6 +63,7 @@ const Button = styled.button`
62
63
// We use this instead of the default alert because we want to style it to match our app.
63
64
const AnalyticsOptOut = ( { onClose } ) => {
64
65
const theme = useTheme ( )
66
+ const { sendOptOutAnalyticsEvent } = useAnalytics ( )
65
67
66
68
return (
67
69
< FadeIn wrapperTag = { Overlay } >
@@ -85,6 +87,7 @@ const AnalyticsOptOut = ({ onClose }) => {
85
87
< Button
86
88
onClick = { ( ) => {
87
89
configStore . set ( "analyticsOptOut" , true )
90
+ sendOptOutAnalyticsEvent ( )
88
91
onClose ( )
89
92
} }
90
93
style = { {
You can’t perform that action at this time.
0 commit comments