Skip to content

Commit

Permalink
fix: remove some tracking functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-mazz committed Oct 22, 2024
1 parent 837436b commit c738b10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
10 changes: 1 addition & 9 deletions ts/features/newWallet/components/WalletEmptyScreenContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,13 @@ import {
} from "@pagopa/io-app-design-system";
import React from "react";
import { StyleSheet, View } from "react-native";
import { useFocusEffect } from "@react-navigation/native";
import I18n from "../../../i18n";
import { useIONavigation } from "../../../navigation/params/AppParamsList";
import { ITW_ROUTES } from "../../itwallet/navigation/routes";
import {
trackWalletAdd,
updatePropertiesWalletRevoked
} from "../../itwallet/analytics";
import { useIOStore } from "../../../store/hooks";
import { trackWalletAdd } from "../../itwallet/analytics";

const WalletEmptyScreenContent = () => {
const navigation = useIONavigation();
const store = useIOStore();

useFocusEffect(() => updatePropertiesWalletRevoked(store.getState()));

const handleAddToWalletButtonPress = () => {
trackWalletAdd();
Expand Down
5 changes: 1 addition & 4 deletions ts/features/newWallet/screens/WalletHomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
useIONavigation
} from "../../../navigation/params/AppParamsList";
import { MainTabParamsList } from "../../../navigation/params/MainTabParamsList";
import { useIODispatch, useIOSelector, useIOStore } from "../../../store/hooks";
import { useIODispatch, useIOSelector } from "../../../store/hooks";
import { cgnDetails } from "../../bonus/cgn/store/actions/details";
import { idPayWalletGet } from "../../idpay/wallet/store/actions";
import { ITW_ROUTES } from "../../itwallet/navigation/routes";
Expand All @@ -19,7 +19,6 @@ import { WalletPaymentsRedirectBanner } from "../components/WalletPaymentsRedire
import { walletToggleLoadingState } from "../store/actions/placeholders";
import { selectWalletCards } from "../store/selectors";
import {
trackAllCredentialProfileAndSuperProperties,
trackOpenWalletScreen,
trackWalletAdd
} from "../../itwallet/analytics";
Expand All @@ -29,10 +28,8 @@ import { IOScrollView } from "../../../components/ui/IOScrollView";
type Props = IOStackNavigationRouteProps<MainTabParamsList, "WALLET_HOME">;

const WalletHomeScreen = ({ route }: Props) => {
const store = useIOStore();
useFocusEffect(() => {
trackOpenWalletScreen();
void trackAllCredentialProfileAndSuperProperties(store.getState());
});

const dispatch = useIODispatch();
Expand Down

0 comments on commit c738b10

Please sign in to comment.