Upgrade to Flow 0.71

This commit is contained in:
Tom Moor
2018-05-05 16:16:08 -07:00
parent 4a4f9f7107
commit 518015f55b
256 changed files with 23205 additions and 3658 deletions

View File

@@ -1,5 +1,5 @@
// @flow
import React, { Component } from 'react';
import * as React from 'react';
import { observable } from 'mobx';
import { observer } from 'mobx-react';
import styled from 'styled-components';
@@ -13,17 +13,16 @@ import AvatarEditor from 'react-avatar-editor';
import { uploadFile, dataUrlToBlob } from 'utils/uploadFile';
type Props = {
children?: React$Element<any>,
onSuccess: string => void,
onError: string => void,
children?: React.Node,
onSuccess: string => *,
onError: string => *,
};
@observer
class DropToImport extends Component {
class DropToImport extends React.Component<Props> {
@observable isUploading: boolean = false;
@observable isCropping: boolean = false;
@observable zoom: number = 1;
props: Props;
file: File;
avatarEditorRef: AvatarEditor;
@@ -46,7 +45,7 @@ class DropToImport extends Component {
}
};
handleZoom = (event: SyntheticDragEvent) => {
handleZoom = (event: SyntheticDragEvent<*>) => {
let target = event.target;
if (target instanceof HTMLInputElement) {
this.zoom = parseFloat(target.value);