mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Add proptypes
This commit is contained in:
parent
291708ff8c
commit
20b9c6c8a3
2 changed files with 10 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue