From 6b3fb4b36de31373610b591527331fb2ad535a1b Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Wed, 11 Dec 2024 22:49:40 -0800 Subject: [PATCH] fix: linters --- src/internal/utils/getAddressTokenBalances.tsx | 1 - src/wallet/components/island/WalletIslandProvider.tsx | 2 +- .../components/island/WalletIslandTransactionActions.tsx | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/internal/utils/getAddressTokenBalances.tsx b/src/internal/utils/getAddressTokenBalances.tsx index 9f2e20608a..c94e2be0ab 100644 --- a/src/internal/utils/getAddressTokenBalances.tsx +++ b/src/internal/utils/getAddressTokenBalances.tsx @@ -117,6 +117,5 @@ export default async function getAddressTokenBalances( }, ]; - return tokenBalances.sort((a, b) => b.valueInFiat - a.valueInFiat); } diff --git a/src/wallet/components/island/WalletIslandProvider.tsx b/src/wallet/components/island/WalletIslandProvider.tsx index d90e19ec7a..1cdca784f0 100644 --- a/src/wallet/components/island/WalletIslandProvider.tsx +++ b/src/wallet/components/island/WalletIslandProvider.tsx @@ -10,8 +10,8 @@ import { } from 'react'; import { useAddressTokenHoldings } from '../../../core-react/internal/hooks/useAddressTokenHoldings'; import { useValue } from '../../../core-react/internal/hooks/useValue'; -import type { TokenBalanceWithFiatValue } from './WalletIslandTokenHoldings'; import { useWalletContext } from '../WalletProvider'; +import type { TokenBalanceWithFiatValue } from './WalletIslandTokenHoldings'; export type WalletIslandContextType = { showSwap: boolean; diff --git a/src/wallet/components/island/WalletIslandTransactionActions.tsx b/src/wallet/components/island/WalletIslandTransactionActions.tsx index bee22f4e3f..66eb3068ce 100644 --- a/src/wallet/components/island/WalletIslandTransactionActions.tsx +++ b/src/wallet/components/island/WalletIslandTransactionActions.tsx @@ -1,7 +1,7 @@ import { addSvgForeground } from '../../../internal/svg/addForegroundSvg'; import { arrowUpRightSvg } from '../../../internal/svg/arrowUpRightSvg'; import { toggleSvg } from '../../../internal/svg/toggleSvg'; -import { cn, border, color, pressable, text } from '../../../styles/theme'; +import { border, cn, color, pressable, text } from '../../../styles/theme'; import { useWalletIslandContext } from './WalletIslandProvider'; type TransactionActionProps = { @@ -12,7 +12,7 @@ type TransactionActionProps = { export function WalletIslandTransactionActions() { const { setShowSwap, animationClasses } = useWalletIslandContext(); - + return (