Add proptypes

This commit is contained in:
Jenni Nurmi 2019-05-09 15:06:35 +03:00
parent 291708ff8c
commit 20b9c6c8a3
2 changed files with 10 additions and 0 deletions

View file

@ -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,

View file

@ -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);