From a274496cac4ecf1f65fcee7e066b91b22517aeb4 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Mon, 3 Feb 2020 15:26:46 +0200 Subject: [PATCH 1/2] Don't pass invalid prop to Final Form --- src/forms/PaymentMethodsForm/PaymentMethodsForm.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/forms/PaymentMethodsForm/PaymentMethodsForm.js b/src/forms/PaymentMethodsForm/PaymentMethodsForm.js index 46b3cf5828..7be277b0ef 100644 --- a/src/forms/PaymentMethodsForm/PaymentMethodsForm.js +++ b/src/forms/PaymentMethodsForm/PaymentMethodsForm.js @@ -4,7 +4,7 @@ * It's also handled separately in handleSubmit function. */ import React, { Component } from 'react'; -import { bool, func, object, string } from 'prop-types'; +import { func, object, string } from 'prop-types'; import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl'; import { Form as FinalForm } from 'react-final-form'; import classNames from 'classnames'; @@ -284,7 +284,6 @@ PaymentMethodsForm.defaultProps = { rootClassName: null, inProgress: false, handleSubmit: null, - invalid: false, addPaymentMethodError: null, deletePaymentMethodError: null, createStripeCustomerError: null, @@ -295,7 +294,6 @@ PaymentMethodsForm.defaultProps = { PaymentMethodsForm.propTypes = { formId: string, intl: intlShape.isRequired, - invalid: bool, handleSubmit: func, addPaymentMethodError: object, deletePaymentMethodError: object, From ab252f862fe7519ff856db84a1114d45eabce7cb Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Mon, 3 Feb 2020 15:44:50 +0200 Subject: [PATCH 2/2] Update Changelog --- CHANGELOG.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d97ece8a7..2d9f48143d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,10 +12,14 @@ way to update this template, but currently, we follow a pattern: --- -## Upcoming version 2019-XX-XX +## Upcoming version 2020-XX-XX +## [v4.1.0] 2020-02-03 + +- [fix] Remove unused 'invalid' prop that breaks some versions of Final Form + [#1255](https://github.com/sharetribe/ftw-daily/pull/1255) - [fix] Fix `console.warn` functions. [#1252](https://github.com/sharetribe/ftw-daily/pull/1252) -- [fix] Add missing countries (e.g. MX and JP) to `StripeBankAccountTokenInput` validations. +- [add] Add missing countries (e.g. MX and JP) to `StripeBankAccountTokenInput` validations. [#1250](https://github.com/sharetribe/ftw-daily/pull/1250) ## [v4.0.0] 2019-12-19