chore: prettier on UI

This commit is contained in:
Katie Thornhill 2019-11-19 23:04:09 -05:00
parent 912b40c383
commit 4b75eaa0ab
No known key found for this signature in database
GPG key ID: F76EDC6541A99644
49 changed files with 1703 additions and 1267 deletions

View file

@ -1,27 +1,35 @@
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 {
state = {
notReady: true,
message: 'chotto matte kudasai...',
url: null
url: null,
};
async componentDidMount() {
const {
body: { url },
} = await superagent.get('/api/oauth/bot?url=✔️');
this.setState({ url, notReady: false });
window.location.href = url;
}
async componentDidMount () {
const { body: { url } } = await superagent.get('/api/oauth/bot?url=✔️')
this.setState({ url, notReady: false })
window.location.href = url
}
render () {
return (this.state.notReady) ? this.state.message : <a style={{zIndex: 10000}} href={this.state.url}>Something oopsed, click me to get to where you meant.</a>
render() {
return this.state.notReady ? (
this.state.message
) : (
<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;