Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
rustam-cb committed Dec 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent eb9a993 commit 4ffe559
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fund/components/FundCard.test.tsx
Original file line number Diff line number Diff line change
@@ -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',
2 changes: 1 addition & 1 deletion src/fund/components/FundCard.tsx
Original file line number Diff line number Diff line change
@@ -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[] = [
{

0 comments on commit 4ffe559

Please sign in to comment.