Skip to content
Snippets Groups Projects
Unverified Commit bcb10910 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

tech: Delete old analytics code (#46986)

parent 2bbcf745
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,6 @@ export function AddSeriesButton({
<ActionButton
onClick={onClick}
tooltip={series.length > 1 ? t`Edit series` : t`Add series`}
analyticsEvent="Dashboard;Edit Series Modal;open"
data-testid="add-series-button"
>
<IconContainer>
......
......@@ -12,14 +12,10 @@ import {
interface Props extends HTMLAttributes<HTMLAnchorElement> {
as?: ElementType;
tooltip?: string;
analyticsEvent?: string;
}
const DashActionButton = forwardRef<HTMLAnchorElement, Props>(
function DashActionButton(
{ as, tooltip, analyticsEvent, children, ...props },
ref,
) {
function DashActionButton({ as, tooltip, children, ...props }, ref) {
return (
<StyledAnchor {...props} as={as} ref={ref}>
<Tooltip tooltip={tooltip}>{children}</Tooltip>
......
......@@ -142,7 +142,6 @@ function DashCardActionsPanelInner({
onClick={onPreviewToggle}
tooltip={isPreviewing ? t`Edit` : t`Preview`}
aria-label={isPreviewing ? t`Edit card` : t`Preview card`}
analyticsEvent="Dashboard;Text;edit"
>
{isPreviewing ? (
<DashCardActionButton.Icon name="edit_document" />
......@@ -174,7 +173,6 @@ function DashCardActionsPanelInner({
key="click-behavior-tooltip"
aria-label={t`Click behavior`}
tooltip={t`Click behavior`}
analyticsEvent="Dashboard;Open Click Behavior Sidebar"
onClick={showClickBehaviorSidebar}
>
<Icon name="click" />
......@@ -251,11 +249,7 @@ function DashCardActionsPanelInner({
>
<DashCardActionButtonsContainer>
{buttons}
<DashCardActionButton
onClick={handleRemoveCard}
tooltip={t`Remove`}
analyticsEvent="Dashboard;Remove Card Modal"
>
<DashCardActionButton onClick={handleRemoveCard} tooltip={t`Remove`}>
<DashCardActionButton.Icon name="close" />
</DashCardActionButton>
</DashCardActionButtonsContainer>
......
......@@ -54,7 +54,6 @@ export const getExtraButtons = ({
title: t`Enter fullscreen`,
icon: "expand",
action: (e: MouseEvent) => onFullscreenChange(!isFullscreen, !e.altKey),
event: `Dashboard;Fullscreen Mode;${!isFullscreen}`,
});
extraButtons.push({
......@@ -79,7 +78,6 @@ export const getExtraButtons = ({
title: t`Move`,
icon: "move",
link: `${pathname}/move`,
event: "Dashboard;Move",
});
}
......@@ -87,7 +85,6 @@ export const getExtraButtons = ({
title: t`Duplicate`,
icon: "clone",
link: `${pathname}/copy`,
event: "Dashboard;Copy",
});
if (canEdit) {
......@@ -97,7 +94,6 @@ export const getExtraButtons = ({
title: t`Move to trash`,
icon: "trash",
link: `${pathname}/archive`,
event: "Dashboard;Archive",
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment