1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 09:32:50 +00:00

build: eslint

This commit is contained in:
2022-03-29 00:35:45 -05:00
parent 9c57c87e85
commit 0532acfddd
22 changed files with 3332 additions and 1388 deletions

View File

@@ -1,23 +1,18 @@
import queryString from 'query-string';
import queryString, { ParsedQuery } from 'query-string';
import React from 'react';
import { RouteComponentProps } from 'react-router-dom';
import { axios, StorageService } from '../../services';
interface Props extends RouteComponentProps<any> {}
interface State {}
export class Oauth extends React.Component<Props, State> {
constructor(props: Props) {
export class Oauth extends React.Component<RouteComponentProps<unknown>, unknown> {
constructor(props: RouteComponentProps<unknown>) {
super(props);
}
componentDidMount() {
const params: any = queryString.parse(this.props.location.search);
const params: ParsedQuery<string> = queryString.parse(this.props.location.search);
if (params['code']) {
// do stuff here
this.fetchOauth(params['code']);
this.fetchOauth(params['code'] as string);
}
}