Skip to content

Commit

Permalink
fix: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Jan 10, 2025
1 parent 5315bf0 commit 02f9907
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/wallet/components/WalletIslandTransactionActions.test.tsx
Original file line number Diff line number Diff line change
@@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/components/WalletIslandTransactionActions.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useOnchainKit } from '@/core-react/useOnchainKit';
import { addSvgForeground } from '@/internal/svg/addForegroundSvg';
import { arrowUpRightSvg } from '@/internal/svg/arrowUpRightSvg';
import { toggleSvg } from '@/internal/svg/toggleSvg';
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;
Expand Down
7 changes: 5 additions & 2 deletions src/wallet/components/WalletIslandWalletActions.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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();
Expand Down Expand Up @@ -54,7 +54,10 @@ export function WalletIslandWalletActions() {
</div>
</PressableIcon>
<PressableIcon ariaLabel="Show QR code" onClick={handleQr}>
<div data-testid="ockWalletIsland_QrButton" className="h-7 w-7 scale-110">
<div
data-testid="ockWalletIsland_QrButton"
className="h-7 w-7 scale-110"
>
{qrIconSvg}
</div>
</PressableIcon>
Expand Down

0 comments on commit 02f9907

Please sign in to comment.