Skip to content

Commit

Permalink
Add PropTypes to AppWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartozzz committed Apr 7, 2018
1 parent f3c3c29 commit 4bd9533
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scripts/components/App.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {PureComponent} from "react";
import PropTypes from "prop-types";
import {Switch, Route, withRouter} from "react-router-dom";
import App from "qilin-components/app";
import Bar from "qilin-components/bar";
Expand Down Expand Up @@ -42,6 +43,11 @@ const theme = {

@withRouter
class AppWindow extends PureComponent {
static propTypes = {
location: PropTypes.object.isRequired,
history: PropTypes.object.isRequired,
}

closeWindow = () => {
this.window.close(true);
}
Expand Down

0 comments on commit 4bd9533

Please sign in to comment.