ESLint fixes and cleanup

This commit is contained in:
Erik Ziegler committed 2019-01-08 10:48:57 +01:00
1 parent ecbaddfa93
commit d45d2ee8f4
18 files changed
+113 -87

No files matched your search

+8 -3
View File
@@ -1,9 +1,14 @@
import React from "react";
import React, { Component } from "react";
import { CallbackComponent } from "redux-oidc";
import { withRouter } from "react-router-dom";
import PropTypes from 'prop-types';
import userManager from "./userManager";
class CallbackPage extends React.Component {
class CallbackPage extends Component {
static propTypes = {
history: PropTypes.object
}
render() {
// just redirect to '/' in both cases
return (
@@ -12,7 +17,7 @@ class CallbackPage extends React.Component {
successCallback={() => this.props.history.push("/")}
errorCallback={error => {
this.props.history.push("/");
console.error(error);
throw new Error(error);
}}
>
<div>Redirecting...</div>