From f88405d5a170802fb43539fbb845545f12af8e0f Mon Sep 17 00:00:00 2001 From: Peter Sanderson Date: Mon, 20 May 2024 11:58:52 +0200 Subject: [PATCH] feat(suite): remove skip analytics, its part of DeviceSetupCompleted --- packages/suite-analytics/src/constants.ts | 1 - packages/suite-analytics/src/types/events.ts | 6 ------ .../src/components/onboarding/SkipStepConfirmation.tsx | 8 -------- 3 files changed, 15 deletions(-) diff --git a/packages/suite-analytics/src/constants.ts b/packages/suite-analytics/src/constants.ts index 2ff016f9ff21..9addaa5b1db5 100644 --- a/packages/suite-analytics/src/constants.ts +++ b/packages/suite-analytics/src/constants.ts @@ -89,5 +89,4 @@ export enum EventType { T2B1DashboardPromo = 'promo/t2b1-dashboard', OnboardingSelectBackupType = 'onboarding/select-backup-type', - OnboardingSkipStep = 'onboarding/skip-step', } diff --git a/packages/suite-analytics/src/types/events.ts b/packages/suite-analytics/src/types/events.ts index bb911832033a..36f94d7df088 100644 --- a/packages/suite-analytics/src/types/events.ts +++ b/packages/suite-analytics/src/types/events.ts @@ -426,10 +426,4 @@ export type SuiteAnalyticsEvent = device: string; unitPackaging: number; }; - } - | { - type: EventType.OnboardingSkipStep; - payload: { - skippedStep: string; - }; }; diff --git a/packages/suite/src/components/onboarding/SkipStepConfirmation.tsx b/packages/suite/src/components/onboarding/SkipStepConfirmation.tsx index 660236ec8461..9ce5cbbdeacd 100644 --- a/packages/suite/src/components/onboarding/SkipStepConfirmation.tsx +++ b/packages/suite/src/components/onboarding/SkipStepConfirmation.tsx @@ -6,7 +6,6 @@ import { Button } from '@trezor/components'; import { Translation, Modal } from 'src/components/suite'; import { useOnboarding } from 'src/hooks/suite'; import { typography } from '@trezor/theme'; -import { EventType, analytics } from '@trezor/suite-analytics'; const Wrapper = styled.div` display: flex; @@ -48,13 +47,6 @@ export const SkipStepConfirmation = ({ onCancel }: SkipStepConfirmationProps) => } const handleSkipStepConfirm = () => { - analytics.report({ - type: EventType.OnboardingSkipStep, - payload: { - skippedStep: activeStepId, - }, - }); - goToNextStep(nextStep); };