Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Jul 24, 2024
1 parent acfad9d commit 28daf0a
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 157 deletions.
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,34 @@
"@coral-xyz/anchor": "^0.28.0",
"@gorhom/bottom-sheet": "4.6.0",
"@gorhom/portal": "1.0.14",
"@helium/account-fetch-cache": "0.9.0-alpha.6",
"@helium/account-fetch-cache-hooks": "0.9.0-alpha.6",
"@helium/account-fetch-cache": "0.9.0-alpha.7",
"@helium/account-fetch-cache-hooks": "0.9.0-alpha.7",
"@helium/address": "4.10.2",
"@helium/circuit-breaker-sdk": "^0.9.0-alpha.6",
"@helium/circuit-breaker-sdk": "^0.9.0-alpha.7",
"@helium/crypto-react-native": "4.8.0",
"@helium/currency-utils": "^0.9.0-alpha.6",
"@helium/data-credits-sdk": "^0.9.0-alpha.6",
"@helium/distributor-oracle": "0.9.0-alpha.6",
"@helium/fanout-sdk": "^0.9.0-alpha.6",
"@helium/helium-entity-manager-sdk": "^0.9.0-alpha.6",
"@helium/helium-react-hooks": "0.9.0-alpha.6",
"@helium/helium-sub-daos-sdk": "^0.9.0-alpha.6",
"@helium/currency-utils": "^0.9.0-alpha.7",
"@helium/data-credits-sdk": "^0.9.0-alpha.7",
"@helium/distributor-oracle": "0.9.0-alpha.7",
"@helium/fanout-sdk": "^0.9.0-alpha.7",
"@helium/helium-entity-manager-sdk": "^0.9.0-alpha.7",
"@helium/helium-react-hooks": "0.9.0-alpha.7",
"@helium/helium-sub-daos-sdk": "^0.9.0-alpha.7",
"@helium/http": "4.7.5",
"@helium/idls": "0.9.0-alpha.6",
"@helium/lazy-distributor-sdk": "^0.9.0-alpha.6",
"@helium/idls": "0.9.0-alpha.7",
"@helium/lazy-distributor-sdk": "^0.9.0-alpha.7",
"@helium/modular-governance-hooks": "^0.0.8",
"@helium/modular-governance-idls": "0.0.8-next.22+7098baa",
"@helium/onboarding": "4.11.0",
"@helium/organization-sdk": "^0.0.8",
"@helium/proto-ble": "4.0.0",
"@helium/react-native-sdk": "3.0.5",
"@helium/spl-utils": "0.9.0-alpha.6",
"@helium/spl-utils": "0.9.0-alpha.7",
"@helium/state-controller-sdk": "^0.0.8",
"@helium/sus": "0.9.0-alpha.6",
"@helium/sus": "0.9.0-alpha.7",
"@helium/transactions": "4.8.1",
"@helium/treasury-management-sdk": "^0.9.0-alpha.6",
"@helium/voter-stake-registry-hooks": "0.9.0-alpha.6",
"@helium/voter-stake-registry-sdk": "0.9.0-alpha.6",
"@helium/treasury-management-sdk": "^0.9.0-alpha.7",
"@helium/voter-stake-registry-hooks": "0.9.0-alpha.7",
"@helium/voter-stake-registry-sdk": "0.9.0-alpha.7",
"@helium/wallet-link": "4.11.0",
"@jup-ag/api": "^6.0.6",
"@ledgerhq/hw-app-solana": "7.0.13",
Expand Down Expand Up @@ -266,11 +266,11 @@
},
"resolutions": {
"@types/react": "17",
"@helium/account-fetch-cache": "^0.9.0-alpha.6",
"@helium/account-fetch-cache-hooks": "^0.9.0-alpha.6",
"@helium/helium-react-hooks": "^0.9.0-alpha.6",
"@helium/voter-stake-registry-hooks": "^0.9.0-alpha.6",
"@helium/voter-stake-registry-sdk": "^0.9.0-alpha.6",
"@helium/account-fetch-cache": "^0.9.0-alpha.7",
"@helium/account-fetch-cache-hooks": "^0.9.0-alpha.7",
"@helium/helium-react-hooks": "^0.9.0-alpha.7",
"@helium/voter-stake-registry-hooks": "^0.9.0-alpha.7",
"@helium/voter-stake-registry-sdk": "^0.9.0-alpha.7",
"@helium/modular-governance-hooks": "^0.0.8",
"@helium/onboarding": "4.11.0"
},
Expand Down
18 changes: 9 additions & 9 deletions src/features/account/TokenListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
/* eslint-disable @typescript-eslint/no-shadow */
import Arrow from '@assets/images/listItemRight.svg'
import Lock from '@assets/images/lockClosed.svg'
import InfoWarning from '@assets/images/warning.svg'
import Box from '@components/Box'
import FadeInOut from '@components/FadeInOut'
import Text from '@components/Text'
import TokenIcon from '@components/TokenIcon'
import TouchableContainer from '@components/TouchableContainer'
import { useMint, useOwnedAmount } from '@helium/helium-react-hooks'
import {
useHeliumVsrState,
usePositions,
} from '@helium/voter-stake-registry-hooks'
import { getPositionKeysForOwner } from '@helium/voter-stake-registry-sdk'
import { useCurrentWallet } from '@hooks/useCurrentWallet'
import useHaptic from '@hooks/useHaptic'
import { useMetaplexMetadata } from '@hooks/useMetaplexMetadata'
import usePrevious from '@hooks/usePrevious'
import { useNavigation } from '@react-navigation/native'
import { NATIVE_MINT } from '@solana/spl-token'
import { PublicKey } from '@solana/web3.js'
import { useColors } from '@theme/themeHooks'
import { MIN_BALANCE_THRESHOLD } from '@utils/constants'
import { humanReadable } from '@utils/solanaUtils'
import BN from 'bn.js'
import React, { useCallback, useMemo } from 'react'
import {
getPositionKeysForOwner,
useHeliumVsrState,
usePositions,
} from '@helium/voter-stake-registry-hooks'
import { useAsync } from 'react-async-hook'
import usePrevious from '@hooks/usePrevious'
import Lock from '@assets/images/lockClosed.svg'
import { useColors } from '@theme/themeHooks'
import { useSolana } from '../../solana/SolanaProvider'
import { HomeNavigationProp } from '../home/homeTypes'
import AccountTokenCurrencyBalance from './AccountTokenCurrencyBalance'
Expand Down Expand Up @@ -203,7 +203,7 @@ export const TokenListGovItem = ({ mint }: { mint: PublicKey }) => {
)

const { accounts: fetchedPositions, loading: loadingFetchedPositions } =
usePositions(result?.positionKeys)
usePositions(result?.positions)
const loadingPositions = loadingFetchedPositions || loadingContext
const positions = useMemo(
() =>
Expand Down
Loading

0 comments on commit 28daf0a

Please sign in to comment.