mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-14 16:12:40 +03:00
updated wallet with globalProps
This commit is contained in:
parent
b0b116bbe1
commit
6e8dc84e09
@ -1,4 +1,5 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
// Component
|
||||
import TransactionView from '../view/transactionView';
|
||||
@ -21,10 +22,14 @@ class TransactionContainer extends PureComponent {
|
||||
// Component Functions
|
||||
|
||||
render() {
|
||||
const { walletData } = this.props;
|
||||
const { walletData, globalProps } = this.props;
|
||||
|
||||
return <TransactionView walletData={walletData} />;
|
||||
return <TransactionView walletData={walletData} globalProps={globalProps} />;
|
||||
}
|
||||
}
|
||||
|
||||
export default TransactionContainer;
|
||||
const mapStateToProps = state => ({
|
||||
globalProps: state.account.globalProps,
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps)(TransactionContainer);
|
||||
|
@ -34,6 +34,7 @@ class TransactionView extends PureComponent {
|
||||
intl,
|
||||
intl: { formatNumber },
|
||||
walletData,
|
||||
globalProps,
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
@ -51,7 +52,12 @@ class TransactionView extends PureComponent {
|
||||
<Card>
|
||||
{transactions
|
||||
&& transactions.map((item, index) => {
|
||||
const transactionData = groomingTransactionData(item, walletData, formatNumber);
|
||||
const transactionData = groomingTransactionData(
|
||||
item,
|
||||
walletData,
|
||||
formatNumber,
|
||||
globalProps,
|
||||
);
|
||||
|
||||
return (
|
||||
<CollapsibleCard
|
||||
|
Loading…
Reference in New Issue
Block a user