Skip to content

Commit eb0c8b6

Browse files
committed
Fix lint/packages
1 parent 2dd7006 commit eb0c8b6

File tree

3 files changed

+332
-175
lines changed

3 files changed

+332
-175
lines changed

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,35 @@
3131
"@coral-xyz/anchor": "^0.31.0",
3232
"@gorhom/bottom-sheet": "4.6.0",
3333
"@gorhom/portal": "1.0.14",
34-
"@helium/account-fetch-cache": "0.10.3",
35-
"@helium/account-fetch-cache-hooks": "0.10.3",
34+
"@helium/account-fetch-cache": "0.10.5",
35+
"@helium/account-fetch-cache-hooks": "0.10.5",
3636
"@helium/address": "4.10.2",
37-
"@helium/circuit-breaker-sdk": "0.10.3",
37+
"@helium/circuit-breaker-sdk": "0.10.5",
3838
"@helium/crypto-react-native": "4.8.0",
39-
"@helium/currency-utils": "0.10.3",
40-
"@helium/data-credits-sdk": "0.10.3",
41-
"@helium/distributor-oracle": "0.10.3",
42-
"@helium/fanout-sdk": "0.10.3",
43-
"@helium/helium-entity-manager-sdk": "0.10.3",
44-
"@helium/helium-react-hooks": "0.10.3",
45-
"@helium/helium-sub-daos-sdk": "0.10.3",
39+
"@helium/currency-utils": "0.10.5",
40+
"@helium/data-credits-sdk": "0.10.5",
41+
"@helium/distributor-oracle": "0.10.5",
42+
"@helium/fanout-sdk": "0.10.5",
43+
"@helium/helium-entity-manager-sdk": "0.10.5",
44+
"@helium/helium-react-hooks": "0.10.5",
45+
"@helium/helium-sub-daos-sdk": "0.10.5",
4646
"@helium/http": "4.7.5",
47-
"@helium/idls": "0.10.3",
48-
"@helium/lazy-distributor-sdk": "0.10.3",
47+
"@helium/idls": "0.10.5",
48+
"@helium/lazy-distributor-sdk": "0.10.5",
4949
"@helium/modular-governance-hooks": "^0.1.5",
5050
"@helium/modular-governance-idls": "0.1.5",
51-
"@helium/no-emit-sdk": "^0.10.3",
51+
"@helium/no-emit-sdk": "^0.10.5",
5252
"@helium/onboarding": "4.14.0",
5353
"@helium/organization-sdk": "^0.1.5",
5454
"@helium/proto-ble": "4.0.0",
5555
"@helium/react-native-sdk": "3.1.0",
56-
"@helium/spl-utils": "0.10.3",
56+
"@helium/spl-utils": "0.10.5",
5757
"@helium/state-controller-sdk": "^0.1.5",
58-
"@helium/sus": "0.10.3",
58+
"@helium/sus": "0.10.5",
5959
"@helium/transactions": "4.8.1",
60-
"@helium/treasury-management-sdk": "0.10.3",
61-
"@helium/voter-stake-registry-hooks": "0.10.3",
62-
"@helium/voter-stake-registry-sdk": "0.10.3",
60+
"@helium/treasury-management-sdk": "0.10.5",
61+
"@helium/voter-stake-registry-hooks": "0.10.5",
62+
"@helium/voter-stake-registry-sdk": "0.10.5",
6363
"@helium/wallet-link": "4.11.0",
6464
"@jup-ag/api": "^6.0.6",
6565
"@keystonehq/keystone-sdk": "^0.8.0",
@@ -278,11 +278,11 @@
278278
"@types/react": "18",
279279
"react": "18.2.0",
280280
"@solana/wallet-adapter-react": "0.15.33",
281-
"@helium/account-fetch-cache": "0.10.3",
282-
"@helium/account-fetch-cache-hooks": "0.10.3",
283-
"@helium/helium-react-hooks": "0.10.3",
284-
"@helium/voter-stake-registry-hooks": "0.10.3",
285-
"@helium/voter-stake-registry-sdk": "0.10.3",
281+
"@helium/account-fetch-cache": "0.10.5",
282+
"@helium/account-fetch-cache-hooks": "0.10.5",
283+
"@helium/helium-react-hooks": "0.10.5",
284+
"@helium/voter-stake-registry-hooks": "0.10.5",
285+
"@helium/voter-stake-registry-sdk": "0.10.5",
286286
"@helium/modular-governance-hooks": "^0.1.5",
287287
"@helium/onboarding": "4.14.0"
288288
},

src/features/collectables/AssertLocationScreen.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ import { useMobileInfo } from '@hooks/useMobileInfo'
3232
import { useOnboardingBalnces } from '@hooks/useOnboardingBalances'
3333
import { useReverseGeo } from '@hooks/useReverseGeo'
3434
import useSubmitTxn from '@hooks/useSubmitTxn'
35-
import MapLibreGL from '@maplibre/maplibre-react-native'
35+
import MapLibreGL, {
36+
MapViewRef,
37+
CameraRef,
38+
} from '@maplibre/maplibre-react-native'
3639
import { RouteProp, useNavigation, useRoute } from '@react-navigation/native'
3740
import { parseH3BNLocation } from '@utils/h3'
3841
import { removeDashAndCapitalize } from '@utils/hotspotNftsUtils'
@@ -73,8 +76,8 @@ const AssertLocationScreen = () => {
7376
const { info: iotInfoAcc } = useIotInfo(entityKey)
7477
const { info: mobileInfoAcc } = useMobileInfo(entityKey)
7578
const backEdges = useMemo(() => ['top'] as Edge[], [])
76-
const mapRef = useRef<MapLibreGL.MapView>(null)
77-
const cameraRef = useRef<MapLibreGL.Camera>(null)
79+
const mapRef = useRef<MapViewRef>(null)
80+
const cameraRef = useRef<CameraRef>(null)
7881
const { showOKAlert } = useAlert()
7982
const colors = useColors()
8083
const [mapCenter, setMapCenter] = useState<number[]>()
@@ -251,7 +254,10 @@ const AssertLocationScreen = () => {
251254
cameraRef.current.setCamera({
252255
animationDuration: 500,
253256
zoomLevel: MAX_MAP_ZOOM,
254-
centerCoordinate: userLocation?.coords,
257+
centerCoordinate: [
258+
userLocation?.coords.longitude,
259+
userLocation?.coords.latitude,
260+
],
255261
})
256262
}
257263
}, [cameraRef, userLocation?.coords])

0 commit comments

Comments
 (0)