File tree 1 file changed +6
-1
lines changed
apps/reactotron-app/src/renderer/pages/home
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { shell } from "electron"
3
3
import styled from "styled-components"
4
4
import { reactotronLogo } from "../../images"
5
5
import { EmptyState } from "reactotron-core-ui"
6
+ import { useAnalytics } from "../../util/analyticsHelpers"
6
7
7
8
const WelcomeText = styled . div `
8
9
font-size: 1.25em;
@@ -26,11 +27,15 @@ function openDocs() {
26
27
}
27
28
28
29
function Welcome ( ) {
30
+ const { sendExternalLinkAnalyticsEvent } = useAnalytics ( )
31
+
29
32
return (
30
33
< EmptyState image = { reactotronLogo } title = "Welcome to Reactotron!" >
31
34
< WelcomeText > Connect a device or simulator to get started.</ WelcomeText >
32
35
< WelcomeText > Need to set up your app to use Reactotron?</ WelcomeText >
33
- < Container onClick = { openDocs } > Check out the docs here!</ Container >
36
+ < Container onClick = { ( ) => {
37
+ sendExternalLinkAnalyticsEvent ( "docs" )
38
+ openDocs ( ) } } > Check out the docs here!</ Container >
34
39
</ EmptyState >
35
40
)
36
41
}
You can’t perform that action at this time.
0 commit comments