Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Mar 10, 2025
1 parent 5e79bb0 commit 410e535
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions playground/nextjs-app-router/components/demo/Earn.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { AppContext } from '@/components/AppProvider';
import { Earn, LifecycleStatus } from '@coinbase/onchainkit/earn';
import { TransactionError } from '@coinbase/onchainkit/transaction';
import { Earn, type LifecycleStatus } from '@coinbase/onchainkit/earn';
import type { TransactionError } from '@coinbase/onchainkit/transaction';
import { useCallback, useContext } from 'react';
import { TransactionReceipt } from 'viem';
import type { TransactionReceipt } from 'viem';

export function EarnDemo() {
const { vaultAddress } = useContext(AppContext);
Expand Down
2 changes: 1 addition & 1 deletion src/earn/components/EarnProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { useGetTokenBalance } from '@/wallet/hooks/useGetTokenBalance';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { fireEvent, render, renderHook, screen } from '@testing-library/react';
import { act } from 'react';
import type { TransactionReceipt } from 'viem';
import { baseSepolia } from 'viem/chains';
import { type Mock, beforeEach, describe, expect, it, vi } from 'vitest';
import { http, WagmiProvider, createConfig, mock, useAccount } from 'wagmi';
import { EarnProvider, useEarnContext } from './EarnProvider';
import { TransactionReceipt } from 'viem';

const DUMMY_ADDRESS = '0x9E95f497a7663B70404496dB6481c890C4825fe1' as const;
const queryClient = new QueryClient();
Expand Down
2 changes: 1 addition & 1 deletion src/earn/components/EarnProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function EarnProvider({
onSuccess?.(lifecycleStatus?.statusData?.transactionReceipts?.[0]);
}
onStatus?.(lifecycleStatus);
}, [lifecycleStatus]);
}, [lifecycleStatus, onStatus, onError, onSuccess]);

const {
asset,
Expand Down

0 comments on commit 410e535

Please sign in to comment.