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 React, { PureComponent } from 'react';
|
||||||
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
// Component
|
// Component
|
||||||
import TransactionView from '../view/transactionView';
|
import TransactionView from '../view/transactionView';
|
||||||
@ -21,10 +22,14 @@ class TransactionContainer extends PureComponent {
|
|||||||
// Component Functions
|
// Component Functions
|
||||||
|
|
||||||
render() {
|
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,
|
||||||
intl: { formatNumber },
|
intl: { formatNumber },
|
||||||
walletData,
|
walletData,
|
||||||
|
globalProps,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -51,7 +52,12 @@ class TransactionView extends PureComponent {
|
|||||||
<Card>
|
<Card>
|
||||||
{transactions
|
{transactions
|
||||||
&& transactions.map((item, index) => {
|
&& transactions.map((item, index) => {
|
||||||
const transactionData = groomingTransactionData(item, walletData, formatNumber);
|
const transactionData = groomingTransactionData(
|
||||||
|
item,
|
||||||
|
walletData,
|
||||||
|
formatNumber,
|
||||||
|
globalProps,
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CollapsibleCard
|
<CollapsibleCard
|
||||||
|
Loading…
Reference in New Issue
Block a user