Skip to content

Commit

Permalink
chore: clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain committed May 7, 2024
1 parent 9a95c6a commit c51aae8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/wallet-mobile/src/NftDetails/NftDetailsImage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import {Dimensions, StyleSheet, useWindowDimensions, View} from 'react-native'
import {StyleSheet, useWindowDimensions, View} from 'react-native'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import ViewTransformer from 'react-native-easy-view-transformer'
Expand All @@ -20,13 +20,10 @@ const isParams = (params?: Params | object | undefined): params is Params => {
export const NftDetailsImage = () => {
const {id} = useParams<Params>(isParams)
const wallet = useSelectedWallet()
const dimensions = useWindowDimensions()

// TODO: revisit (missing refresh mechanism)
// reading from the getter, there is no need to subscribe to changes
// until implementation of the new refresh mechanism in here
const amount = wallet.balances.records.get(id)

const dimensions = useWindowDimensions()
const [amount] = React.useState(wallet.balances.records.get(id))

const {track} = useMetrics()
React.useEffect(() => {
Expand Down

0 comments on commit c51aae8

Please sign in to comment.