Skip to content

Commit

Permalink
refactor: move useQuoteFetchEvents hook
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Nov 29, 2024
1 parent eca6a63 commit 932fd57
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ui/hooks/bridge/useBridging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { getPortfolioUrl } from '../../helpers/utils/portfolio';
import { SwapsTokenObject } from '../../../shared/constants/swaps';
import { getProviderConfig } from '../../../shared/modules/selectors/networks';
import { useCrossChainSwapsEventTracker } from './useCrossChainSwapsEventTracker';
import { useQuoteFetchEvents } from './events/useQuoteFetchEvents';
import { useQuoteFetchEvents } from './useQuoteFetchEvents';
///: END:ONLY_INCLUDE_IF

const useBridging = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
/* eslint-disable camelcase */
import { useEffect, useMemo } from 'react';
import { useSelector } from 'react-redux';
import { MetaMetricsEventName } from '../../../../shared/constants/metametrics';
import { MetaMetricsEventName } from '../../../shared/constants/metametrics';
import {
getBridgeQuotes,
getFromAmount,
getFromChain,
getFromToken,
getQuoteRequest,
getValidationErrors,
} from '../../../ducks/bridge/selectors';
import { useCrossChainSwapsEventTracker } from '../useCrossChainSwapsEventTracker';
import useLatestBalance from '../useLatestBalance';
import { SWAPS_CHAINID_DEFAULT_TOKEN_MAP } from '../../../../shared/constants/swaps';
import { useRequestMetadataProperties } from './useRequestMetadataProperties';
import { useRequestProperties } from './useRequestProperties';
import { useTradeProperties } from './useTradeProperties';
import { useConvertedUsdAmounts } from './useConvertedUsdAmounts';
import { useQuoteProperties } from './useQuoteProperties';
} from '../../ducks/bridge/selectors';
import { useCrossChainSwapsEventTracker } from './useCrossChainSwapsEventTracker';
import useLatestBalance from './useLatestBalance';
import { SWAPS_CHAINID_DEFAULT_TOKEN_MAP } from '../../../shared/constants/swaps';
import { useRequestMetadataProperties } from './events/useRequestMetadataProperties';
import { useRequestProperties } from './events/useRequestProperties';
import { useTradeProperties } from './events/useTradeProperties';
import { useConvertedUsdAmounts } from './events/useConvertedUsdAmounts';
import { useQuoteProperties } from './events/useQuoteProperties';

// This hook is used to track cross chain swaps events related to quote-fetching
export const useQuoteFetchEvents = () => {
Expand Down

0 comments on commit 932fd57

Please sign in to comment.