Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Jan 23, 2025
1 parent f7e5289 commit 2227735
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/earn/components/EarnAmountInput.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { isValidAmount } from '@/core/utils/isValidAmount';
import { formatAmount } from '@/swap/utils/formatAmount';
import { fireEvent, render, screen } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
import { EarnAmountInput } from './EarnAmountInput';
import { isValidAmount } from '@/core/utils/isValidAmount';
import { formatAmount } from '@/swap/utils/formatAmount';

vi.mock('@/swap/utils/formatAmount', () => ({
formatAmount: vi.fn((value) => value),
Expand Down
6 changes: 3 additions & 3 deletions src/earn/components/EarnAmountInput.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { cn } from '@/styles/theme';
import { EarnAmountInputReact } from '../types';
import { TextInput } from '@/internal/components/TextInput';
import { isValidAmount } from '@/core/utils/isValidAmount';
import { TextInput } from '@/internal/components/TextInput';
import { cn } from '@/styles/theme';
import { formatAmount } from '@/swap/utils/formatAmount';
import type { EarnAmountInputReact } from '../types';

export function EarnAmountInput({
className,
Expand Down
2 changes: 1 addition & 1 deletion src/earn/components/WithdrawAmountInput.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fireEvent, render, screen } from '@testing-library/react';
import { type Mock, describe, expect, it, vi } from 'vitest';
import { WithdrawAmountInput } from './WithdrawAmountInput';
import { useEarnContext } from './EarnProvider';
import { WithdrawAmountInput } from './WithdrawAmountInput';

vi.mock('./EarnProvider', () => ({
useEarnContext: vi.fn(),
Expand Down
2 changes: 1 addition & 1 deletion src/earn/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Address } from 'viem';
import type { Address } from 'viem';

export type EarnProviderReact = {
children: React.ReactNode;
Expand Down

0 comments on commit 2227735

Please sign in to comment.