mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
chore: remove semi
This commit is contained in:
parent
4b75eaa0ab
commit
8fcc0dcbf9
64 changed files with 1073 additions and 1073 deletions
|
@ -1,9 +1,9 @@
|
|||
import React, { Component } from 'react';
|
||||
import { Redirect } from 'react-router-dom';
|
||||
import superagent from 'superagent';
|
||||
import { connect } from 'react-redux';
|
||||
import { push } from 'react-router-redux';
|
||||
import { fetchServers } from '../../actions';
|
||||
import React, { Component } from 'react'
|
||||
import { Redirect } from 'react-router-dom'
|
||||
import superagent from 'superagent'
|
||||
import { connect } from 'react-redux'
|
||||
import { push } from 'react-router-redux'
|
||||
import { fetchServers } from '../../actions'
|
||||
|
||||
@connect()
|
||||
class OauthCallback extends Component {
|
||||
|
@ -11,14 +11,14 @@ class OauthCallback extends Component {
|
|||
notReady: true,
|
||||
message: 'chotto matte kudasai...',
|
||||
url: null,
|
||||
};
|
||||
}
|
||||
|
||||
async componentDidMount() {
|
||||
const {
|
||||
body: { url },
|
||||
} = await superagent.get('/api/oauth/bot?url=✔️');
|
||||
this.setState({ url, notReady: false });
|
||||
window.location.href = url;
|
||||
} = await superagent.get('/api/oauth/bot?url=✔️')
|
||||
this.setState({ url, notReady: false })
|
||||
window.location.href = url
|
||||
}
|
||||
|
||||
render() {
|
||||
|
@ -28,8 +28,8 @@ class OauthCallback extends Component {
|
|||
<a style={{ zIndex: 10000 }} href={this.state.url}>
|
||||
Something oopsed, click me to get to where you meant.
|
||||
</a>
|
||||
);
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default OauthCallback;
|
||||
export default OauthCallback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue