Skip to content

Commit

Permalink
feat: refs #110184 fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Bernos committed Jul 19, 2019
1 parent 4f1f841 commit 97c7649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/front/component/App.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import * as React from 'react';
import { BrowserRouter as Router } from "react-router-dom";

import Routes from "./Router";

import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';

import { hasJwt, logout, connectedState } from '../services/auth';
import { logout, connectedState } from '../services/auth';
import Routes from "./Router";


class App extends React.PureComponent {
Expand All @@ -19,16 +19,13 @@ class App extends React.PureComponent {
}

componentDidMount() {

connectedState.subscribe((userConnected) => {
console.log(`Connected State: ${userConnected}`);
this.setState({userConnected});
})
}

render() {
const { userConnected } = this.state;
const { history } = this.props;

return (
<div>
Expand Down
3 changes: 1 addition & 2 deletions src/front/pages/details/details.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class DetailsPage extends React.PureComponent {
super();
this.state = {
loading: true,
editing: false,
application: {
name: "Name",
description: "Description",
Expand Down Expand Up @@ -166,7 +165,7 @@ class DetailsPage extends React.PureComponent {

DetailsPage.propTypes = {
classes: PropTypes.object.isRequired,
history: PropTypes.object.isRequired,
// history: PropTypes.object.isRequired,
match: PropTypes.object.isRequired
};

Expand Down

0 comments on commit 97c7649

Please sign in to comment.