Flow comment
This commit is contained in:
@ -20,8 +20,8 @@ class SlackAuth extends React.Component {
|
|||||||
state: { redirectTo?: string };
|
state: { redirectTo?: string };
|
||||||
state = {};
|
state = {};
|
||||||
|
|
||||||
// $FlowFixMe not sure why this breaks
|
// $FlowIssue Flow doesn't like async lifecycle components https://github.com/facebook/flow/issues/1803
|
||||||
componentDidMount = async () => {
|
async componentDidMount(): void {
|
||||||
const { error, code, state } = queryString.parse(
|
const { error, code, state } = queryString.parse(
|
||||||
this.props.location.search
|
this.props.location.search
|
||||||
);
|
);
|
||||||
@ -53,7 +53,7 @@ class SlackAuth extends React.Component {
|
|||||||
: this.setState({ redirectTo: '/auth/error' });
|
: this.setState({ redirectTo: '/auth/error' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user