aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-10 05:29:28 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-10 05:29:28 +0800
commit3aa831ad7752cf24ae67b1a96a6e839cc40ec820 (patch)
tree3d46af392f6d73217e603bb9633bc820dde9be8a /packages/instant/src/containers
parent3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9 (diff)
downloaddexon-sol-tools-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.tar
dexon-sol-tools-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.tar.gz
dexon-sol-tools-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.tar.bz2
dexon-sol-tools-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.tar.lz
dexon-sol-tools-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.tar.xz
dexon-sol-tools-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.tar.zst
dexon-sol-tools-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.zip
feat: add account payment method container
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/connected_account_payment_method.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/instant/src/containers/connected_account_payment_method.ts b/packages/instant/src/containers/connected_account_payment_method.ts
new file mode 100644
index 000000000..ea9531a3e
--- /dev/null
+++ b/packages/instant/src/containers/connected_account_payment_method.ts
@@ -0,0 +1,21 @@
+import * as React from 'react';
+import { connect } from 'react-redux';
+
+import { State } from '../redux/reducer';
+import { Account } from '../types';
+
+import { PaymentMethod } from '../components/payment_method';
+
+export interface ConnectedAccountPaymentMethodProps {}
+
+interface ConnectedState {
+ account: Account;
+}
+
+const mapStateToProps = (state: State, _ownProps: ConnectedAccountPaymentMethodProps): ConnectedState => ({
+ account: state.providerState.account,
+});
+
+export const ConnectedAccountPaymentMethod: React.ComponentClass<ConnectedAccountPaymentMethodProps> = connect(
+ mapStateToProps,
+)(PaymentMethod);