diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-10 05:41:32 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-10 05:41:32 +0800 |
commit | 3f1f19e344c1f79accf38572dd0f7c29308954e7 (patch) | |
tree | fe3f1026d5aebbc4bde27526b08dd7606de076a5 /packages/instant/src/containers/connected_account_payment_method.ts | |
parent | 3aa831ad7752cf24ae67b1a96a6e839cc40ec820 (diff) | |
download | dexon-0x-contracts-3f1f19e344c1f79accf38572dd0f7c29308954e7.tar.gz dexon-0x-contracts-3f1f19e344c1f79accf38572dd0f7c29308954e7.tar.zst dexon-0x-contracts-3f1f19e344c1f79accf38572dd0f7c29308954e7.zip |
feat: connect payment method to state and display different content based on account state
Diffstat (limited to 'packages/instant/src/containers/connected_account_payment_method.ts')
-rw-r--r-- | packages/instant/src/containers/connected_account_payment_method.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/instant/src/containers/connected_account_payment_method.ts b/packages/instant/src/containers/connected_account_payment_method.ts index ea9531a3e..a1ebe7125 100644 --- a/packages/instant/src/containers/connected_account_payment_method.ts +++ b/packages/instant/src/containers/connected_account_payment_method.ts @@ -2,7 +2,7 @@ import * as React from 'react'; import { connect } from 'react-redux'; import { State } from '../redux/reducer'; -import { Account } from '../types'; +import { Account, Network } from '../types'; import { PaymentMethod } from '../components/payment_method'; @@ -10,10 +10,12 @@ export interface ConnectedAccountPaymentMethodProps {} interface ConnectedState { account: Account; + network: Network; } const mapStateToProps = (state: State, _ownProps: ConnectedAccountPaymentMethodProps): ConnectedState => ({ account: state.providerState.account, + network: state.network, }); export const ConnectedAccountPaymentMethod: React.ComponentClass<ConnectedAccountPaymentMethodProps> = connect( |