Skip to content

Commit

Permalink
Fixing the Trigger of Heap Event : Console Load Onboarding Wizard
Browse files Browse the repository at this point in the history
PR-URL: hasura/graphql-engine-mono#9193
GitOrigin-RevId: 922940c5c3fbfb08efe0dd838d1e0e2c63459e53
  • Loading branch information
aayshasura authored and hasura-bot committed May 18, 2023
1 parent 07c08e7 commit 369bfb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import React, { useEffect } from 'react';
import { Dispatch } from '../../../../../types';

import { OnboardingAnimation } from './components/OnboardingAnimation';
import { NeonOnboarding } from './components/NeonOnboarding';
import { trackCustomEvent } from '../../../../Analytics';

type ConnectDBScreenProps = {
proceed: VoidFunction;
Expand All @@ -12,6 +13,13 @@ type ConnectDBScreenProps = {
};

export function ConnectDBScreen(props: ConnectDBScreenProps) {
useEffect(() => {
trackCustomEvent({
location: 'Console',
action: 'Load',
object: 'Neon Onboarding Wizard',
});
}, []);
const { proceed, dismissOnboarding, dispatch, setStepperIndex } = props;

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useEffect, useState } from 'react';
import { useSurveysData } from '../../../Surveys';
import { trackCustomEvent } from '../../../Analytics';
import { useOnboardingData } from './useOnboardingData';
import { getWizardState } from '../utils';
import { AllowedSurveyNames } from '../../../Surveys/types';
Expand All @@ -14,14 +13,6 @@ export type WizardState =
| 'hidden';

export function useWizardState() {
useEffect(() => {
trackCustomEvent({
location: 'Console',
action: 'Load',
object: 'Onboarding Wizard',
});
}, []);

const {
show: showSurvey,
data: familiaritySurveyData,
Expand Down

0 comments on commit 369bfb7

Please sign in to comment.