Renamed /src to /frontend
This commit is contained in:
22
frontend/scenes/SlackAuth/SlackAuth.js
Normal file
22
frontend/scenes/SlackAuth/SlackAuth.js
Normal file
@ -0,0 +1,22 @@
|
||||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
|
||||
@observer(['user'])
|
||||
class SlackAuth extends React.Component {
|
||||
static propTypes = {
|
||||
user: React.PropTypes.object.isRequired,
|
||||
}
|
||||
|
||||
componentDidMount = () => {
|
||||
const { code, state } = this.props.location.query;
|
||||
this.props.user.authWithSlack(code, state);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div></div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default SlackAuth;
|
Reference in New Issue
Block a user