Converted a couple of components to flow-types

This commit is contained in:
Tom Moor
2017-04-27 22:18:46 -07:00
parent 4e5c3944d8
commit da8cf6f600
4 changed files with 25 additions and 27 deletions

View File

@ -1,14 +1,16 @@
// @flow
import React from 'react';
import { observer, inject } from 'mobx-react';
import type { User } from '../../../types';
@inject('user')
@observer
class SlackAuthLink extends React.Component {
static propTypes = {
children: React.PropTypes.node.isRequired,
scopes: React.PropTypes.arrayOf(React.PropTypes.string),
user: React.PropTypes.object.isRequired,
redirectUri: React.PropTypes.string,
props: {
children: any,
scopes: Array<string>,
user: User,
redirectUri: string,
};
static defaultProps = {