From 6ba0b21d6e57e5b79d57243be50f195123411bce Mon Sep 17 00:00:00 2001 From: jeremy lee Date: Mon, 19 Aug 2024 14:58:04 -0500 Subject: [PATCH] fix import names --- src/hooks/useAnalytics.ts | 2 +- src/hooks/useLocalNotifications.tsx | 2 +- src/hooks/useNotifications.tsx | 2 +- src/state/localization.ts | 2 +- src/views/ExportHistoryDropdown.tsx | 2 +- src/views/dialogs/AcknowledgeTermsDialog.tsx | 2 +- src/views/dialogs/DepositDialog/DepositDialogContent.tsx | 2 +- src/views/dialogs/OnboardingDialog.tsx | 2 +- src/views/dialogs/OnboardingDialog/GenerateKeys.tsx | 2 +- src/views/dialogs/OnboardingTriggerButton.tsx | 2 +- src/views/dialogs/SharePNLAnalyticsDialog.tsx | 2 +- src/views/dialogs/StakingRewardDialog.tsx | 2 +- src/views/forms/AccountManagementForms/DepositForm.tsx | 2 +- src/views/forms/AccountManagementForms/WithdrawForm.tsx | 2 +- .../forms/StakingForms/StakeForm/StakeFormInputContents.tsx | 2 +- src/views/forms/StakingForms/StakeForm/index.tsx | 2 +- .../forms/StakingForms/UnstakeForm/UnstakeFormInputContents.tsx | 2 +- src/views/forms/StakingForms/UnstakeForm/index.tsx | 2 +- src/views/forms/TradeForm/TradeSizeInputs.tsx | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/hooks/useAnalytics.ts b/src/hooks/useAnalytics.ts index 280057567..5b6b3b8a8 100644 --- a/src/hooks/useAnalytics.ts +++ b/src/hooks/useAnalytics.ts @@ -17,7 +17,7 @@ import { getActiveDialog } from '@/state/dialogsSelectors'; import { getInputTradeData } from '@/state/inputsSelectors'; import { getSelectedLocale } from '@/state/localizationSelectors'; -import { identify, track } from '@/lib/analytics/analytics'; +import { identify, track } from '@/lib/analytics/amplitude'; import { getSelectedTradeType } from '@/lib/tradeData'; import { useAccounts } from './useAccounts'; diff --git a/src/hooks/useLocalNotifications.tsx b/src/hooks/useLocalNotifications.tsx index acce5b148..66c50ab18 100644 --- a/src/hooks/useLocalNotifications.tsx +++ b/src/hooks/useLocalNotifications.tsx @@ -9,7 +9,7 @@ import type { TransferNotifcation } from '@/constants/notifications'; import { useAccounts } from '@/hooks/useAccounts'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { STATUS_ERROR_GRACE_PERIOD, fetchTransferStatus, diff --git a/src/hooks/useNotifications.tsx b/src/hooks/useNotifications.tsx index 26dcdf963..22c6e0d42 100644 --- a/src/hooks/useNotifications.tsx +++ b/src/hooks/useNotifications.tsx @@ -23,7 +23,7 @@ import { type Notifications, } from '@/constants/notifications'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { isAbacusNotificationSingleSession } from '@/lib/notifications'; import { renderSvgToDataUrl } from '@/lib/renderSvgToDataUrl'; diff --git a/src/state/localization.ts b/src/state/localization.ts index 57c67f591..7e70b0211 100644 --- a/src/state/localization.ts +++ b/src/state/localization.ts @@ -4,7 +4,7 @@ import { createSlice } from '@reduxjs/toolkit'; import { AnalyticsEvents } from '@/constants/analytics'; import { EN_LOCALE_DATA, EU_LOCALES, LocaleData, SupportedLocales } from '@/constants/localization'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; export interface LocalizationState { isLocaleLoaded: boolean; diff --git a/src/views/ExportHistoryDropdown.tsx b/src/views/ExportHistoryDropdown.tsx index a11bea0d4..35e333daf 100644 --- a/src/views/ExportHistoryDropdown.tsx +++ b/src/views/ExportHistoryDropdown.tsx @@ -22,7 +22,7 @@ import { getIsAccountConnected, getSubaccountId } from '@/state/accountSelectors import { useAppSelector } from '@/state/appTypes'; import { getSelectedLocale } from '@/state/localizationSelectors'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { exportCSV } from '@/lib/csv'; import { MustBigNumber } from '@/lib/numbers'; diff --git a/src/views/dialogs/AcknowledgeTermsDialog.tsx b/src/views/dialogs/AcknowledgeTermsDialog.tsx index 23da30a07..0800d56d9 100644 --- a/src/views/dialogs/AcknowledgeTermsDialog.tsx +++ b/src/views/dialogs/AcknowledgeTermsDialog.tsx @@ -18,7 +18,7 @@ import { Dialog } from '@/components/Dialog'; import { Link } from '@/components/Link'; import { TermsOfUseLink } from '@/components/TermsOfUseLink'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; export const AcknowledgeTermsDialog = ({ setIsOpen }: DialogProps) => { const stringGetter = useStringGetter(); diff --git a/src/views/dialogs/DepositDialog/DepositDialogContent.tsx b/src/views/dialogs/DepositDialog/DepositDialogContent.tsx index 95ad8710a..3a48d3737 100644 --- a/src/views/dialogs/DepositDialog/DepositDialogContent.tsx +++ b/src/views/dialogs/DepositDialog/DepositDialogContent.tsx @@ -12,7 +12,7 @@ import { DepositForm } from '@/views/forms/AccountManagementForms/DepositForm'; import { TestnetDepositForm } from '@/views/forms/AccountManagementForms/TestnetDepositForm'; import abacusStateManager from '@/lib/abacus'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; type ElementProps = { onDeposit?: () => void; diff --git a/src/views/dialogs/OnboardingDialog.tsx b/src/views/dialogs/OnboardingDialog.tsx index 9f0edac80..e76899574 100644 --- a/src/views/dialogs/OnboardingDialog.tsx +++ b/src/views/dialogs/OnboardingDialog.tsx @@ -25,7 +25,7 @@ import { TestnetDepositForm } from '@/views/forms/AccountManagementForms/Testnet import { calculateOnboardingStep } from '@/state/accountCalculators'; import { useAppSelector } from '@/state/appTypes'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { DepositForm } from '../forms/AccountManagementForms/DepositForm'; import { ChooseWallet } from './OnboardingDialog/ChooseWallet'; diff --git a/src/views/dialogs/OnboardingDialog/GenerateKeys.tsx b/src/views/dialogs/OnboardingDialog/GenerateKeys.tsx index ed73f8c2f..579271903 100644 --- a/src/views/dialogs/OnboardingDialog/GenerateKeys.tsx +++ b/src/views/dialogs/OnboardingDialog/GenerateKeys.tsx @@ -27,7 +27,7 @@ import { Switch } from '@/components/Switch'; import { WithReceipt } from '@/components/WithReceipt'; import { WithTooltip } from '@/components/WithTooltip'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { isTruthy } from '@/lib/isTruthy'; import { log } from '@/lib/telemetry'; import { parseWalletError } from '@/lib/wallet'; diff --git a/src/views/dialogs/OnboardingTriggerButton.tsx b/src/views/dialogs/OnboardingTriggerButton.tsx index d5c0ede9e..7060f9193 100644 --- a/src/views/dialogs/OnboardingTriggerButton.tsx +++ b/src/views/dialogs/OnboardingTriggerButton.tsx @@ -13,7 +13,7 @@ import { getOnboardingState } from '@/state/accountSelectors'; import { useAppDispatch, useAppSelector } from '@/state/appTypes'; import { forceOpenDialog } from '@/state/dialogs'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; type StyleProps = { className?: string; diff --git a/src/views/dialogs/SharePNLAnalyticsDialog.tsx b/src/views/dialogs/SharePNLAnalyticsDialog.tsx index 08680c8f6..dda0bb90d 100644 --- a/src/views/dialogs/SharePNLAnalyticsDialog.tsx +++ b/src/views/dialogs/SharePNLAnalyticsDialog.tsx @@ -26,7 +26,7 @@ import { Tag, TagSign } from '@/components/Tag'; import { useAppDispatch } from '@/state/appTypes'; import { closeDialog } from '@/state/dialogs'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { MustBigNumber } from '@/lib/numbers'; import { triggerTwitterIntent } from '@/lib/twitter'; diff --git a/src/views/dialogs/StakingRewardDialog.tsx b/src/views/dialogs/StakingRewardDialog.tsx index 0aaa21f74..a1601a17c 100644 --- a/src/views/dialogs/StakingRewardDialog.tsx +++ b/src/views/dialogs/StakingRewardDialog.tsx @@ -30,7 +30,7 @@ import { getSubaccountEquity } from '@/state/accountSelectors'; import { useAppSelector } from '@/state/appTypes'; import { getChartDotBackground } from '@/state/configsSelectors'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { BigNumberish, MustBigNumber } from '@/lib/numbers'; import { log } from '@/lib/telemetry'; import { hashFromTx } from '@/lib/txUtils'; diff --git a/src/views/forms/AccountManagementForms/DepositForm.tsx b/src/views/forms/AccountManagementForms/DepositForm.tsx index 9a9fcbd2a..fbd7b0064 100644 --- a/src/views/forms/AccountManagementForms/DepositForm.tsx +++ b/src/views/forms/AccountManagementForms/DepositForm.tsx @@ -54,7 +54,7 @@ import { forceOpenDialog } from '@/state/dialogs'; import { getTransferInputs } from '@/state/inputsSelectors'; import abacusStateManager from '@/lib/abacus'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { MustBigNumber } from '@/lib/numbers'; import { getNobleChainId, NATIVE_TOKEN_ADDRESS } from '@/lib/squid'; import { log } from '@/lib/telemetry'; diff --git a/src/views/forms/AccountManagementForms/WithdrawForm.tsx b/src/views/forms/AccountManagementForms/WithdrawForm.tsx index c704693bf..793efd11a 100644 --- a/src/views/forms/AccountManagementForms/WithdrawForm.tsx +++ b/src/views/forms/AccountManagementForms/WithdrawForm.tsx @@ -59,7 +59,7 @@ import { getSelectedLocale } from '@/state/localizationSelectors'; import abacusStateManager from '@/lib/abacus'; import { validateCosmosAddress } from '@/lib/addressUtils'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { getRouteErrorMessageOverride } from '@/lib/errors'; import { MustBigNumber } from '@/lib/numbers'; import { getNobleChainId } from '@/lib/squid'; diff --git a/src/views/forms/StakingForms/StakeForm/StakeFormInputContents.tsx b/src/views/forms/StakingForms/StakeForm/StakeFormInputContents.tsx index c53bd30a9..fea168aa4 100644 --- a/src/views/forms/StakingForms/StakeForm/StakeFormInputContents.tsx +++ b/src/views/forms/StakingForms/StakeForm/StakeFormInputContents.tsx @@ -28,7 +28,7 @@ import { StakeRewardButtonAndReceipt, } from '@/views/forms/StakingForms/shared/StakeRewardButtonAndReceipt'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { BigNumberish, MustBigNumber } from '@/lib/numbers'; type ElementProps = { diff --git a/src/views/forms/StakingForms/StakeForm/index.tsx b/src/views/forms/StakingForms/StakeForm/index.tsx index 61ea30822..39cf13961 100644 --- a/src/views/forms/StakingForms/StakeForm/index.tsx +++ b/src/views/forms/StakingForms/StakeForm/index.tsx @@ -27,7 +27,7 @@ import { Tag } from '@/components/Tag'; import { WithTooltip } from '@/components/WithTooltip'; import { StakeButtonAlert } from '@/views/forms/StakingForms/shared/StakeRewardButtonAndReceipt'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { BigNumberish, MustBigNumber } from '@/lib/numbers'; import { log } from '@/lib/telemetry'; import { hashFromTx } from '@/lib/txUtils'; diff --git a/src/views/forms/StakingForms/UnstakeForm/UnstakeFormInputContents.tsx b/src/views/forms/StakingForms/UnstakeForm/UnstakeFormInputContents.tsx index 1f7188e46..3f1cc3eb4 100644 --- a/src/views/forms/StakingForms/UnstakeForm/UnstakeFormInputContents.tsx +++ b/src/views/forms/StakingForms/UnstakeForm/UnstakeFormInputContents.tsx @@ -28,7 +28,7 @@ import { StakeRewardButtonAndReceipt, } from '@/views/forms/StakingForms/shared/StakeRewardButtonAndReceipt'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { BigNumberish, MustBigNumber } from '@/lib/numbers'; import { ValidatorName } from '../shared/ValidatorName'; diff --git a/src/views/forms/StakingForms/UnstakeForm/index.tsx b/src/views/forms/StakingForms/UnstakeForm/index.tsx index d3bee1b3e..2b2723777 100644 --- a/src/views/forms/StakingForms/UnstakeForm/index.tsx +++ b/src/views/forms/StakingForms/UnstakeForm/index.tsx @@ -30,7 +30,7 @@ import { Output, OutputType } from '@/components/Output'; import { Tag } from '@/components/Tag'; import { StakeButtonAlert } from '@/views/forms/StakingForms/shared/StakeRewardButtonAndReceipt'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { BigNumberish, MustBigNumber } from '@/lib/numbers'; import { log } from '@/lib/telemetry'; import { hashFromTx } from '@/lib/txUtils'; diff --git a/src/views/forms/TradeForm/TradeSizeInputs.tsx b/src/views/forms/TradeForm/TradeSizeInputs.tsx index e5bb67a13..0dedaa5a5 100644 --- a/src/views/forms/TradeForm/TradeSizeInputs.tsx +++ b/src/views/forms/TradeForm/TradeSizeInputs.tsx @@ -37,7 +37,7 @@ import { getSelectedLocale } from '@/state/localizationSelectors'; import { getCurrentMarketConfig } from '@/state/perpetualsSelectors'; import abacusStateManager from '@/lib/abacus'; -import { track } from '@/lib/analytics/analytics'; +import { track } from '@/lib/analytics/amplitude'; import { MustBigNumber } from '@/lib/numbers'; import { MarketLeverageInput } from './MarketLeverageInput';