From 20b9c6c8a3906bb417a70abb7b545dc2c996a1c4 Mon Sep 17 00:00:00 2001 From: Jenni Nurmi Date: Thu, 9 May 2019 15:06:35 +0300 Subject: [PATCH] Add proptypes --- src/containers/CheckoutPage/CheckoutPage.js | 5 +++++ src/forms/StripePaymentForm/StripePaymentForm.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/containers/CheckoutPage/CheckoutPage.js b/src/containers/CheckoutPage/CheckoutPage.js index 176ff612..a2670126 100644 --- a/src/containers/CheckoutPage/CheckoutPage.js +++ b/src/containers/CheckoutPage/CheckoutPage.js @@ -515,6 +515,7 @@ CheckoutPageComponent.defaultProps = { speculatedTransaction: null, enquiredTransaction: null, currentUser: null, + stripePaymentToken: null, }; CheckoutPageComponent.propTypes = { @@ -537,6 +538,10 @@ CheckoutPageComponent.propTypes = { slug: string, }).isRequired, sendOrderRequest: func.isRequired, + onCreateStripePaymentToken: func.isRequired, + stripePaymentTokenInProgress: bool.isRequired, + stripePaymentTokenError: bool.isRequired, + stripePaymentToken: object, // from connect dispatch: func.isRequired, diff --git a/src/forms/StripePaymentForm/StripePaymentForm.js b/src/forms/StripePaymentForm/StripePaymentForm.js index e734c698..f1a58a49 100644 --- a/src/forms/StripePaymentForm/StripePaymentForm.js +++ b/src/forms/StripePaymentForm/StripePaymentForm.js @@ -271,6 +271,7 @@ StripePaymentForm.defaultProps = { inProgress: false, onChange: () => null, showInitialMessageInput: true, + stripePaymentToken: null, }; const { bool, func, string, object } = PropTypes; @@ -286,6 +287,10 @@ StripePaymentForm.propTypes = { paymentInfo: string.isRequired, authorDisplayName: string.isRequired, showInitialMessageInput: bool, + onCreateStripePaymentToken: func.isRequired, + stripePaymentTokenInProgress: bool.isRequired, + stripePaymentTokenError: bool.isRequired, + stripePaymentToken: object, }; export default injectIntl(StripePaymentForm);