Skip to content

Commit

Permalink
dont display fee in dashboard last txs
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Nov 25, 2023
1 parent edb0038 commit a014756
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/Balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { NS } from '@src/i18n'
import { getLatestHistory } from '@store/latestHistoryEntries'
import { globals, highlight as hi } from '@styles'
import { getColor } from '@styles/colors'
import { formatBalance, formatInt, formatSatStr, isBool, isNum } from '@util'
import { formatBalance, formatInt, formatSatStr, isBool } from '@util'
import { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { Text, TouchableOpacity, View } from 'react-native'
Expand Down Expand Up @@ -118,7 +118,6 @@ export default function Balance({ balance, nav }: IBalanceProps) {
txType={getTxTypeStr(h.type)}
timestamp={h.timestamp}
amount={h.amount}
fee={h.fee}
onPress={() => nav?.navigate('history entry details', { entry: h })}
/>
))
Expand All @@ -141,11 +140,10 @@ interface IHistoryEntryProps {
isSwap?: boolean
timestamp: number
amount: number
fee?: number
onPress: () => void
}

function HistoryEntry({ icon, txType, isSwap, timestamp, amount, fee, onPress }: IHistoryEntryProps) {
function HistoryEntry({ icon, txType, isSwap, timestamp, amount, onPress }: IHistoryEntryProps) {
const { t } = useTranslation([NS.history])
const { color, highlight } = useThemeContext()

Expand All @@ -167,12 +165,7 @@ function HistoryEntry({ icon, txType, isSwap, timestamp, amount, fee, onPress }:
</Text>
</View>
</View>
<View>
<Txt txt={getAmount()} styles={[{ color: getColor(highlight, color) }]} />
<Text style={{ color: getColor(highlight, color), paddingBottom: vs(3), textAlign: 'right', fontSize: vs(12) }}>
{t('fee', { ns: NS.common })}: {isNum(fee) ? fee : 0}
</Text>
</View>
<Txt txt={getAmount()} styles={[{ color: getColor(highlight, color) }]} />
</TouchableOpacity>
)
}
Expand Down

0 comments on commit a014756

Please sign in to comment.