Merge pull request #2049 from dannycalleri/fixed-flow-errors-view-files

Fixed flow errors on a few 'view.jsx' files and 'form-field.jsx'
This commit is contained in:
Sean Yesmunt 2018-10-22 11:44:17 -04:00 committed by GitHub
commit 7fd598360f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 8 deletions

View file

@ -22,7 +22,7 @@ type Props = {
button: ?string, // primary, secondary, alt, link button: ?string, // primary, secondary, alt, link
noPadding: ?boolean, // to remove padding and allow circular buttons noPadding: ?boolean, // to remove padding and allow circular buttons
uppercase: ?boolean, uppercase: ?boolean,
iconColor: ?string, iconColor?: string,
tourniquet: ?boolean, // to shorten the button and ellipsis, only use for links tourniquet: ?boolean, // to shorten the button and ellipsis, only use for links
}; };

View file

@ -16,7 +16,7 @@ type Props = {
// see Stripe docs for more info: // see Stripe docs for more info:
// https://stripe.com/docs/checkout#integration-custom // https://stripe.com/docs/checkout#integration-custom
// ===================================================== // =====================================================
// Your publishable key (test or live). // Your publishable key (test or live).
// can't use "key" as a prop in react, so have to change the keyname // can't use "key" as a prop in react, so have to change the keyname
stripeKey: string, stripeKey: string,
@ -50,7 +50,7 @@ class CardVerify extends React.Component {
const script = document.createElement('script'); const script = document.createElement('script');
script.src = 'https://checkout.stripe.com/checkout.js'; script.src = 'https://checkout.stripe.com/checkout.js';
script.async = 1; script.async = true;
this.loadPromise = (() => { this.loadPromise = (() => {
let canceled = false; let canceled = false;

View file

@ -4,16 +4,14 @@ import CardMedia from 'component/cardMedia';
import TruncatedText from 'component/common/truncated-text'; import TruncatedText from 'component/common/truncated-text';
import classnames from 'classnames'; import classnames from 'classnames';
import SubscribeButton from 'component/subscribeButton'; import SubscribeButton from 'component/subscribeButton';
import type { Claim } from 'types/claim';
type Props = { type Props = {
uri: string, uri: string,
isResolvingUri: boolean, isResolvingUri: boolean,
totalItems: number, totalItems: number,
size: string, size: string,
claim: ?{ claim: ?Claim,
claim_id: string,
name: string,
},
resolveUri: string => void, resolveUri: string => void,
navigate: (string, ?{}) => void, navigate: (string, ?{}) => void,
}; };

View file

@ -25,7 +25,7 @@ type Props = {
affixClass?: string, // class applied to prefix/postfix label affixClass?: string, // class applied to prefix/postfix label
firstInList?: boolean, // at the top of a list, no padding top firstInList?: boolean, // at the top of a list, no padding top
autoFocus?: boolean, autoFocus?: boolean,
inputProps: { inputProps?: {
disabled?: boolean, disabled?: boolean,
}, },
}; };