File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
apps/reactotron-app/src/renderer/components/AnalyticsOptOut Expand file tree Collapse file tree 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"
33import FadeIn from "react-fade-in"
44import { reactotronAnalytics } from "../../images"
55import configStore from "../../config"
6+ import { useAnalytics } from "../../util/analyticsHelpers"
67
78const Overlay = styled . div `
89 position: absolute;
@@ -62,6 +63,7 @@ const Button = styled.button`
6263// We use this instead of the default alert because we want to style it to match our app.
6364const AnalyticsOptOut = ( { onClose } ) => {
6465 const theme = useTheme ( )
66+ const { sendOptOutAnalyticsEvent } = useAnalytics ( )
6567
6668 return (
6769 < FadeIn wrapperTag = { Overlay } >
@@ -85,6 +87,7 @@ const AnalyticsOptOut = ({ onClose }) => {
8587 < Button
8688 onClick = { ( ) => {
8789 configStore . set ( "analyticsOptOut" , true )
90+ sendOptOutAnalyticsEvent ( )
8891 onClose ( )
8992 } }
9093 style = { {
You can’t perform that action at this time.
0 commit comments