diff --git a/src/CONST/index.ts b/src/CONST/index.ts index 7aab7c8dcbae2..fe65e6c268ef1 100644 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -8290,9 +8290,6 @@ const CONST = { SIGN_UP: 'sign_up', WORKSPACE_CREATED: 'workspace_created', PAID_ADOPTION: 'paid_adoption', - PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_SHOWN: 'product_training_scan_test_tooltip_shown', - PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_DISMISSED: 'product_training_scan_test_tooltip_dismissed', - PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_CONFIRMED: 'product_training_scan_test_tooltip_confirmed', }, }, diff --git a/src/components/ProductTrainingContext/index.tsx b/src/components/ProductTrainingContext/index.tsx index d3b63e9d1fd3d..36d09312c6eb4 100644 --- a/src/components/ProductTrainingContext/index.tsx +++ b/src/components/ProductTrainingContext/index.tsx @@ -41,11 +41,6 @@ type ProductTrainingContextConfig = { * Callback to be called when the tooltip is confirmed */ onConfirm?: () => void; - - /** - * Callback to be called when the tooltip is shown - */ - onShown?: () => void; }; const ProductTrainingContext = createContext({ @@ -273,12 +268,8 @@ const useProductTrainingContext = (tooltipName: ProductTrainingTooltipName, shou const renderProductTrainingTooltip = useCallback(() => { const tooltip = TOOLTIPS[tooltipName]; - return ( - + { - GoogleTagManager.publishEvent(CONST.ANALYTICS.EVENT.PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_SHOWN, accountID); - }, onConfirm: () => { setTestReceiptAndNavigateRef?.current?.(); - GoogleTagManager.publishEvent(CONST.ANALYTICS.EVENT.PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_CONFIRMED, accountID); }, onDismiss: () => { dismissProductTraining(CONST.PRODUCT_TRAINING_TOOLTIP_NAMES.SCAN_TEST_TOOLTIP, true); - GoogleTagManager.publishEvent(CONST.ANALYTICS.EVENT.PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_DISMISSED, accountID); }, }, );