From 02f990794794337c61182e32629ae3cd03910785 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Thu, 9 Jan 2025 21:03:33 -0800 Subject: [PATCH] fix: lints --- .../components/WalletIslandTransactionActions.test.tsx | 4 ++-- src/wallet/components/WalletIslandTransactionActions.tsx | 2 +- src/wallet/components/WalletIslandWalletActions.tsx | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/wallet/components/WalletIslandTransactionActions.test.tsx b/src/wallet/components/WalletIslandTransactionActions.test.tsx index 5bdaf985d7..6982a242fe 100644 --- a/src/wallet/components/WalletIslandTransactionActions.test.tsx +++ b/src/wallet/components/WalletIslandTransactionActions.test.tsx @@ -1,9 +1,9 @@ +import { useOnchainKit } from '@/core-react/useOnchainKit'; import { fireEvent, render, screen } from '@testing-library/react'; import { beforeEach, describe, expect, it, vi } from 'vitest'; import { useWalletIslandContext } from './WalletIslandProvider'; import { WalletIslandTransactionActions } from './WalletIslandTransactionActions'; -import { useOnchainKit } from '@/core-react/useOnchainKit'; -import { useWalletContext } from '@/wallet/components/WalletProvider'; +import { useWalletContext } from './WalletProvider'; vi.mock('@/core-react/useOnchainKit', () => ({ useOnchainKit: vi.fn(), diff --git a/src/wallet/components/WalletIslandTransactionActions.tsx b/src/wallet/components/WalletIslandTransactionActions.tsx index bedbaf4a59..8472c2c1ba 100644 --- a/src/wallet/components/WalletIslandTransactionActions.tsx +++ b/src/wallet/components/WalletIslandTransactionActions.tsx @@ -1,3 +1,4 @@ +import { useOnchainKit } from '@/core-react/useOnchainKit'; import { addSvgForeground } from '@/internal/svg/addForegroundSvg'; import { arrowUpRightSvg } from '@/internal/svg/arrowUpRightSvg'; import { toggleSvg } from '@/internal/svg/toggleSvg'; @@ -5,7 +6,6 @@ import { border, cn, color, pressable, text } from '@/styles/theme'; import { useCallback } from 'react'; import { useWalletIslandContext } from './WalletIslandProvider'; import { useWalletContext } from './WalletProvider'; -import { useOnchainKit } from '@/core-react/useOnchainKit'; type TransactionActionProps = { icon: React.ReactNode; diff --git a/src/wallet/components/WalletIslandWalletActions.tsx b/src/wallet/components/WalletIslandWalletActions.tsx index df47da4ff8..b705b17149 100644 --- a/src/wallet/components/WalletIslandWalletActions.tsx +++ b/src/wallet/components/WalletIslandWalletActions.tsx @@ -1,4 +1,5 @@ import { PressableIcon } from '@/internal/components/PressableIcon'; +import { baseScanSvg } from '@/internal/svg/baseScanSvg'; import { disconnectSvg } from '@/internal/svg/disconnectSvg'; import { qrIconSvg } from '@/internal/svg/qrIconSvg'; import { refreshSvg } from '@/internal/svg/refreshSvg'; @@ -7,7 +8,6 @@ import { useCallback } from 'react'; import { useDisconnect } from 'wagmi'; import { useWalletIslandContext } from './WalletIslandProvider'; import { useWalletContext } from './WalletProvider'; -import { baseScanSvg } from '@/internal/svg/baseScanSvg'; export function WalletIslandWalletActions() { const { address, handleClose } = useWalletContext(); @@ -54,7 +54,10 @@ export function WalletIslandWalletActions() { -
+
{qrIconSvg}