Bug 1266128 - Rename about debugging Tab(s) to Panel(s). r=janx

This commit is contained in:
Alexandre Poirot
2016-05-03 09:06:31 -07:00
parent 65233c11ad
commit cfe75b5609
15 changed files with 89 additions and 73 deletions

View File

@@ -0,0 +1,26 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { createClass, createFactory, DOM: dom } =
require("devtools/client/shared/vendor/react");
const PanelMenuEntry = createFactory(require("./panel-menu-entry"));
module.exports = createClass({
displayName: "PanelMenu",
render() {
let { panels, selectedPanelId, selectPanel } = this.props;
let panelLinks = panels.map(({ id, panelId, name, icon }) => {
let selected = id == selectedPanelId;
return PanelMenuEntry({
id, panelId, name, icon, selected, selectTab
});
});
// "categories" id used for styling purposes
return dom.div({ id: "categories", role: "tablist" }, panelLinks);
},
});