Skip to content

Commit

Permalink
Remove unused WC active sessions dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchung committed Oct 25, 2024
1 parent 7ffa4e8 commit 2ea0f15
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/asset-list/RecyclerAssetList2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import AndroidContextMenu from '@/components/context-menu/ContextMenu.android';
import ContextMenuButton from '@/components/native-context-menu/contextMenu';
import { analytics } from '@/analytics';
import lang from 'i18n-js';
import { useWalletConnectV2Sessions } from '@/walletConnect/hooks/useWalletConnectV2Sessions';
import { IS_ANDROID } from '@/env';

export type AssetListType = 'wallet' | 'ens-profile' | 'select-nft';
Expand Down Expand Up @@ -149,8 +148,6 @@ function NavbarOverlay({ accentColor, position }: { accentColor?: string; positi

// ////////////////////////////////////////////////////
// Context Menu
const { sessions: activeWCV2Sessions } = useWalletConnectV2Sessions();

const menuConfig = React.useMemo(
() => ({
menuItems: [
Expand All @@ -173,7 +170,7 @@ function NavbarOverlay({ accentColor, position }: { accentColor?: string; positi
].filter(Boolean),
...(ios ? { menuTitle: '' } : {}),
}),
[activeWCV2Sessions.length]
[]
);

const handlePressMenuItem = React.useCallback(
Expand Down

0 comments on commit 2ea0f15

Please sign in to comment.