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

This commit is contained in:
Patrick Pei
2016-10-20 03:52:00 -04:00
parent d4140b5e9b
commit 1c22383dc6
14 changed files with 155 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;