Bug 1264929 - Make about:debugging pass ESLint's "react/prop-types" rule. r=jdescottes
MozReview-Commit-ID: ABhdvunhR7a
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user