diff --git a/src/fund/components/FundCard.test.tsx b/src/fund/components/FundCard.test.tsx index c446c1c1ca..81bb2a02ab 100644 --- a/src/fund/components/FundCard.test.tsx +++ b/src/fund/components/FundCard.test.tsx @@ -1,6 +1,7 @@ import '@testing-library/jest-dom'; import { useDebounce } from '@/core-react/internal/hooks/useDebounce'; import { setOnchainKitConfig } from '@/core/OnchainKitConfig'; +import { openPopup } from '@/ui-react/internal/utils/openPopup'; import { act, fireEvent, @@ -15,7 +16,6 @@ import { fetchOnrampQuote } from '../utils/fetchOnrampQuote'; import { getFundingPopupSize } from '../utils/getFundingPopupSize'; import { FundCard } from './FundCard'; import { FundCardProvider } from './FundCardProvider'; -import { openPopup } from '@/ui-react/internal/utils/openPopup'; vi.mock('../../core-react/internal/hooks/useTheme', () => ({ useTheme: () => 'mocked-theme-class', diff --git a/src/fund/components/FundCard.tsx b/src/fund/components/FundCard.tsx index 980c49ac5d..a93e011bdc 100644 --- a/src/fund/components/FundCard.tsx +++ b/src/fund/components/FundCard.tsx @@ -1,6 +1,7 @@ import { useTheme } from '../../core-react/internal/hooks/useTheme'; import { background, border, cn, color, text } from '../../styles/theme'; import { useExchangeRate } from '../hooks/useExchangeRate'; +import { useFundCardFundingUrl } from '../hooks/useFundCardFundingUrl'; import { useFundCardSetupOnrampEventListeners } from '../hooks/useFundCardSetupOnrampEventListeners'; import type { FundCardPropsReact, PaymentMethodReact } from '../types'; import { FundButton } from './FundButton'; @@ -10,7 +11,6 @@ import { FundCardHeader } from './FundCardHeader'; import { FundCardPaymentMethodSelectorDropdown } from './FundCardPaymentMethodSelectorDropdown'; import { FundCardProvider } from './FundCardProvider'; import { useFundContext } from './FundCardProvider'; -import { useFundCardFundingUrl } from '../hooks/useFundCardFundingUrl'; const defaultPaymentMethods: PaymentMethodReact[] = [ {