Bug 1264063 - 1 - Disable prop-types eslint rule and fix sort-comp errors; r=ochameau

MozReview-Commit-ID: 26NMWUWiKdi
This commit is contained in:
Patrick Brosset
2016-04-13 10:24:48 +02:00
parent 5467318915
commit 0b6dd780fc
18 changed files with 195 additions and 203 deletions

View File

@@ -56,21 +56,6 @@ module.exports = createClass({
this.props.telemetry.destroy();
},
render() {
let { client } = this.props;
let { selectedTabId } = this.state;
let selectTab = this.selectTab;
let selectedTab = tabs.find(t => t.id == selectedTabId);
return dom.div({ className: "app" },
TabMenu({ tabs, selectedTabId, selectTab }),
dom.div({ className: "main-content" },
selectedTab.component({ client })
)
);
},
onHashChange() {
let tabId = window.location.hash.substr(1);
@@ -86,5 +71,20 @@ module.exports = createClass({
selectTab(tabId) {
window.location.hash = "#" + tabId;
},
render() {
let { client } = this.props;
let { selectedTabId } = this.state;
let selectTab = this.selectTab;
let selectedTab = tabs.find(t => t.id == selectedTabId);
return dom.div({ className: "app" },
TabMenu({ tabs, selectedTabId, selectTab }),
dom.div({ className: "main-content" },
selectedTab.component({ client })
)
);
}
});