mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 15:20:55 +01:00
FIX: Item unit change
This commit is contained in:
parent
79f5aaa08a
commit
cb695433d8
2 changed files with 6 additions and 8 deletions
|
@ -1382,21 +1382,19 @@ export class NewWalletPanel extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const BlueTransactionListItem = (item, itemPriceUnit = BitcoinUnit.BTC) => {
|
export const BlueTransactionListItem = ({ item, itemPriceUnit = BitcoinUnit.BTC }) => {
|
||||||
item = item.item;
|
|
||||||
const calculateTimeLabel = () => {
|
const calculateTimeLabel = () => {
|
||||||
const transactionTimeToReadable = loc.transactionTimeToReadable(item.received);
|
const transactionTimeToReadable = loc.transactionTimeToReadable(item.received);
|
||||||
return setTransactionTimeToReadable(transactionTimeToReadable);
|
return setTransactionTimeToReadable(transactionTimeToReadable);
|
||||||
};
|
};
|
||||||
const interval = setInterval(() => calculateTimeLabel(), 60000);
|
const interval = setInterval(() => calculateTimeLabel(), 60000);
|
||||||
|
const [transactionTimeToReadable, setTransactionTimeToReadable] = useState('...');
|
||||||
|
const [subtitleNumberOfLines, setSubtitleNumberOfLines] = useState(1);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
calculateTimeLabel();
|
calculateTimeLabel();
|
||||||
return () => clearInterval(interval);
|
return () => clearInterval(interval);
|
||||||
}, [item]);
|
}, [item, itemPriceUnit]);
|
||||||
|
|
||||||
const [transactionTimeToReadable, setTransactionTimeToReadable] = useState('...');
|
|
||||||
const [subtitleNumberOfLines, setSubtitleNumberOfLines] = useState(1);
|
|
||||||
|
|
||||||
const txMemo = () => {
|
const txMemo = () => {
|
||||||
if (BlueApp.tx_metadata[item.hash] && BlueApp.tx_metadata[item.hash]['memo']) {
|
if (BlueApp.tx_metadata[item.hash] && BlueApp.tx_metadata[item.hash]['memo']) {
|
||||||
|
|
|
@ -160,7 +160,7 @@ PODS:
|
||||||
- React
|
- React
|
||||||
- Sentry (~> 4.1.3)
|
- Sentry (~> 4.1.3)
|
||||||
- swift_qrcodejs (1.1.2)
|
- swift_qrcodejs (1.1.2)
|
||||||
- TcpSockets (3.3.1):
|
- TcpSockets (3.3.2):
|
||||||
- React
|
- React
|
||||||
- ToolTipMenu (5.2.1):
|
- ToolTipMenu (5.2.1):
|
||||||
- React
|
- React
|
||||||
|
@ -386,7 +386,7 @@ SPEC CHECKSUMS:
|
||||||
Sentry: 4e8a17b61ddd116f89536cc81d567fdee1ebca96
|
Sentry: 4e8a17b61ddd116f89536cc81d567fdee1ebca96
|
||||||
SentryReactNative: 07237139c00366ea2e75ae3e5c566e7a71c27a90
|
SentryReactNative: 07237139c00366ea2e75ae3e5c566e7a71c27a90
|
||||||
swift_qrcodejs: 4d024fc98b0778b804ec6a5c810880fd092aec9d
|
swift_qrcodejs: 4d024fc98b0778b804ec6a5c810880fd092aec9d
|
||||||
TcpSockets: c5a7c1a459b5e4b0964d64aa2f47202d6c9d1b73
|
TcpSockets: 8d839b9b14f6f344d98e4642ded13ab3112b462d
|
||||||
ToolTipMenu: c158702a26154d892bc9e6eaa7d7382f0f1ee16e
|
ToolTipMenu: c158702a26154d892bc9e6eaa7d7382f0f1ee16e
|
||||||
yoga: 312528f5bbbba37b4dcea5ef00e8b4033fdd9411
|
yoga: 312528f5bbbba37b4dcea5ef00e8b4033fdd9411
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue