Bug 1264929 - Make about:debugging pass ESLint's "react/prop-types" rule. r=jdescottes

MozReview-Commit-ID: ABhdvunhR7a
This commit is contained in:
Patrick Pei
2016-11-09 10:02:50 +01:00
parent 0448f23e59
commit 3a01fb1e09
14 changed files with 156 additions and 14 deletions

View File

@@ -4,12 +4,17 @@
"use strict";
const { createClass, DOM: dom } =
const { createClass, DOM: dom, PropTypes } =
require("devtools/client/shared/vendor/react");
module.exports = createClass({
displayName: "PanelHeader",
propTypes: {
id: PropTypes.string.isRequired,
name: PropTypes.string.isRequired
},
render() {
let { name, id } = this.props;