Skip to content

Commit 7cac9fe

Browse files
committed
fix prettier & lint
1 parent c79979b commit 7cac9fe

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

src/components/LabelHelpView/api-key-entry.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ export default () => {
3333
<Box paddingTop={8} textAlign="center">
3434
<Title>
3535
To use Label Help, enter your API key. You can{" "}
36-
<a href="https://labelhelp.universaldatatool.com" onClick={() => posthog.capture('get_api_key_link_clicked')}>
36+
<a
37+
href="https://labelhelp.universaldatatool.com"
38+
onClick={() => posthog.capture("get_api_key_link_clicked")}
39+
>
3740
get an API key here
3841
</a>
3942
.
@@ -77,7 +80,7 @@ export default () => {
7780

7881
setVerifying(false)
7982
setInConfig("labelhelp.apikey", textFieldValue)
80-
posthog.capture('save_api_key_button_clicked')
83+
posthog.capture("save_api_key_button_clicked")
8184
}}
8285
>
8386
{verifying ? (

src/components/LabelHelpView/label-help-dialog-content.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export default () => {
178178
<Button
179179
onClick={() => {
180180
setInConfig("labelhelp.apikey", null)
181-
posthog.capture('API_key_button_clicked')
181+
posthog.capture("API_key_button_clicked")
182182
}}
183183
variant="outlined"
184184
>
@@ -190,7 +190,7 @@ export default () => {
190190
variant="outlined"
191191
href="https://labelhelp.universaldatatool.com#addcredits"
192192
onClick={() => {
193-
posthog.capture('add_credits_button_clicked')
193+
posthog.capture("add_credits_button_clicked")
194194
}}
195195
>
196196
Add Credits
@@ -226,7 +226,7 @@ export default () => {
226226
})
227227
)
228228

229-
posthog.capture('start_label_help_button_clicked')
229+
posthog.capture("start_label_help_button_clicked")
230230
}}
231231
style={{ marginLeft: 12 }}
232232
variant="outlined"

src/components/LabelView/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ export default ({
4949

5050
useEffect(() => {
5151
if (labelHelpEnabled) {
52-
posthog.capture('label_help_showed')
52+
posthog.capture("label_help_showed")
5353
}
54-
}, [labelHelpEnabled])
54+
}, [labelHelpEnabled, posthog])
5555

5656
useEffect(() => {
57-
if (currentTab === 'labelhelp') {
58-
posthog.capture('label_help_clicked')
57+
if (currentTab === "labelhelp") {
58+
posthog.capture("label_help_clicked")
5959
}
60-
}, [currentTab])
60+
}, [currentTab, posthog])
6161

6262
return singleSampleDataset ? (
6363
<LabelErrorBoundary>

0 commit comments

Comments
 (0)