Fix flow errors
This commit is contained in:
@@ -5,6 +5,7 @@ import styles from './CenteredContent.scss';
|
||||
type Props = {
|
||||
children: any,
|
||||
style: Object,
|
||||
maxWidth: string,
|
||||
};
|
||||
|
||||
const CenteredContent = (props: Props) => {
|
||||
|
||||
@@ -11,10 +11,6 @@ const testHtml = `
|
||||
`;
|
||||
|
||||
test('renders', () => {
|
||||
const wrapper = shallow(
|
||||
<DocumentHtml
|
||||
html={ testHtml }
|
||||
/>
|
||||
);
|
||||
const wrapper = shallow(<DocumentHtml html={testHtml} />);
|
||||
expect(wrapper.find('.document').length).toBe(1);
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import { observer, inject } from 'mobx-react';
|
||||
import type { User } from 'types';
|
||||
import UserStore from 'stores/UserStore';
|
||||
|
||||
@inject('user')
|
||||
@observer
|
||||
@@ -9,7 +9,7 @@ class SlackAuthLink extends React.Component {
|
||||
props: {
|
||||
children: any,
|
||||
scopes: Array<string>,
|
||||
user: User,
|
||||
user: UserStore,
|
||||
redirectUri: string,
|
||||
};
|
||||
|
||||
@@ -25,8 +25,10 @@ class SlackAuthLink extends React.Component {
|
||||
slackUrl = () => {
|
||||
const baseUrl = 'https://slack.com/oauth/authorize';
|
||||
const params = {
|
||||
// $FlowIssue global variable
|
||||
client_id: SLACK_KEY,
|
||||
scope: this.props.scopes.join(' '),
|
||||
// $FlowIssue global variable
|
||||
redirect_uri: this.props.redirectUri || SLACK_REDIRECT_URI,
|
||||
state: this.props.user.getOauthState(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user