Skip to content

Commit 415f9bc

Browse files
[getsentry/action-github-commit] Auto commit
1 parent 544eb52 commit 415f9bc

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/components/codeBlock/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import {RefObject, useEffect, useRef, useState} from 'react';
44
import {Clipboard} from 'react-feather';
55

6+
import {usePlausibleEvent} from 'sentry-docs/hooks/usePlausibleEvent';
7+
68
import styles from './code-blocks.module.scss';
79

810
import {makeHighlightBlocks} from '../codeHighlights';
911
import {makeKeywordsClickable} from '../codeKeywords';
10-
import {usePlausibleEvent} from 'sentry-docs/hooks/usePlausibleEvent';
11-
1212

1313
export interface CodeBlockProps {
1414
children: React.ReactNode;
@@ -51,7 +51,6 @@ export function CodeBlock({filename, language, children}: CodeBlockProps) {
5151
const [showCopyButton, setShowCopyButton] = useState(false);
5252
const {emit} = usePlausibleEvent();
5353

54-
5554
useEffect(() => {
5655
setShowCopyButton(true);
5756
// prevent .no-copy elements from being copied during selection Right click copy or / Cmd+C

src/components/codeTabs.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {KEYWORDS_REGEX, ORG_AUTH_TOKEN_REGEX} from './codeKeywords';
1717
import {updateElementsVisibilityForOptions} from './onboarding';
1818
import {SignInNote} from './signInNote';
1919

20-
2120
// human readable versions of names
2221
const HUMAN_LANGUAGE_NAMES = {
2322
coffee: 'CoffeeScript',

src/hooks/usePlausibleEvent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ type PlausibleEventProps = {
1111
page: string;
1212
title: string;
1313
};
14-
['copy sentry code']: {
15-
page: string;
16-
};
1714
['Copy Page']: {
1815
page: string;
1916
source: string;
@@ -38,6 +35,9 @@ type PlausibleEventProps = {
3835
page: string;
3936
source: string;
4037
};
38+
['copy sentry code']: {
39+
page: string;
40+
};
4141
};
4242

4343
/**

0 commit comments

Comments
 (0)