1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 17:42:48 +00:00

client: updated everything, deprecated pubg stuff

This commit is contained in:
2018-04-09 20:28:36 -05:00
parent 1f4cb18d21
commit 0fe7468506
43 changed files with 12857 additions and 11121 deletions

View File

@@ -1,9 +1,10 @@
import React from 'react';
import { get } from 'lodash';
import axios from 'axios';
import queryString from 'query-string';
import { RouteComponentProps } from 'react-router-dom';
import { storage } from '../../storage';
interface Props {}
interface Props extends RouteComponentProps<any> {}
interface State {}
@@ -13,11 +14,11 @@ export class Oauth extends React.Component<Props, State> {
}
componentDidMount() {
const code = get(this, 'props.location.query.code');
const params = queryString.parse(this.props.location.search);
if (code) {
if (params['code']) {
// do stuff here
this.fetchOauth(code as string);
this.fetchOauth(params['code']);
}
}