refactor: flow typing (#1012)

* fix: padding

* fix: Minor button alignment issues

* feat: Add icon to invite people button

* WIP
This commit is contained in:
Tom Moor
2019-08-08 23:09:09 -07:00
committed by GitHub
parent 7b2eea0009
commit d024d31f66
64 changed files with 207 additions and 144 deletions

View File

@@ -1,6 +1,6 @@
// @flow
import * as React from 'react';
import { withRouter } from 'react-router-dom';
import { withRouter, type RouterHistory } from 'react-router-dom';
import { observable } from 'mobx';
import { inject, observer } from 'mobx-react';
import Input from 'components/Input';
@@ -13,7 +13,7 @@ import Collection from 'models/Collection';
import UiStore from 'stores/UiStore';
type Props = {
history: Object,
history: RouterHistory,
collection: Collection,
ui: UiStore,
onSubmit: () => void,
@@ -31,7 +31,7 @@ class CollectionEdit extends React.Component<Props> {
this.description = this.props.collection.description;
}
handleSubmit = async (ev: SyntheticEvent<*>) => {
handleSubmit = async (ev: SyntheticEvent<>) => {
ev.preventDefault();
this.isSaving = true;