Skip to content

Commit

Permalink
fire "Connect Wallet Check Page Viewed" at the next screen
Browse files Browse the repository at this point in the history
  • Loading branch information
yushih committed Feb 6, 2025
1 parent f2f2d70 commit 306ce9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import SidebarContainer from '../SidebarContainer';
import AddWalletPageRevamp from './AddWalletPageRevamp';
import type { RestoreModeType } from '../../stores/toplevel/WalletRestoreStore';
import type { StoresProps } from '../../stores';
import { ampli } from '../../../ampli/index'
import { ampli } from '../../../ampli/index';

@observer
export default class AddWalletPage extends Component<StoresProps> {
Expand Down Expand Up @@ -64,6 +64,7 @@ export default class AddWalletPage extends Component<StoresProps> {
});
// <TODO:HW_REFACTOR>
stores.substores.ada.trezorConnect.init();
ampli.connectWalletConnectPageViewed();
};
const openLedgerConnectDialog = () => {
if (selectedNetwork === undefined) {
Expand All @@ -74,6 +75,7 @@ export default class AddWalletPage extends Component<StoresProps> {
});
// <TODO:HW_REFACTOR>
stores.substores.ada.ledgerConnect.init();
ampli.connectWalletConnectPageViewed();
};

let activeDialog = null;
Expand Down Expand Up @@ -173,7 +175,6 @@ export default class AddWalletPage extends Component<StoresProps> {
<AddWalletPageRevamp
onHardwareConnect={() => {
this.openDialogWrapper(WalletConnectHWOptionDialog);
ampli.connectWalletCheckPageViewed();
}}
onCreate={() => goToRoute({ route: ROUTES.WALLETS.CREATE_NEW_WALLET })}
onRestore={() => goToRoute({ route: ROUTES.WALLETS.RESTORE_WALLET })}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import SaveDialog from '../../../components/wallet/hwConnect/trezor/SaveDialog';
import { ProgressStep } from '../../../types/HWConnectStoreTypes';
import type { NetworkRow } from '../../../api/ada/lib/storage/database/primitives/tables';
import type { StoresProps } from '../../../stores';
import { ampli } from '../../../../ampli/index';

type LocalProps = {|
+onClose: (void) => void,
Expand Down Expand Up @@ -51,7 +50,6 @@ export default class WalletTrezorConnectDialogContainer extends Component<{| ...
onExternalLinkClick={handleExternalLinkClick}
submit={() => {
trezorConnectStore.submitCheck();
ampli.connectWalletConnectPageViewed();
}}
cancel={this.cancel}
onBack={this.props.onBack}
Expand Down

0 comments on commit 306ce9e

Please sign in to comment.