From 2b352eba339d0844c0694c8a4dcc81f164f1ab38 Mon Sep 17 00:00:00 2001 From: Daisuke Akatsuka Date: Thu, 20 Sep 2018 03:27:05 +0000 Subject: [PATCH] Bug 1405235 - Part 2: Show USB devices using SidebarItem. r=jdescottes Depends on D5647 Differential Revision: https://phabricator.services.mozilla.com/D5648 --HG-- extra : moz-landing-system : lando --- .../src/components/sidebar/Sidebar.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/devtools/client/aboutdebugging-new/src/components/sidebar/Sidebar.js b/devtools/client/aboutdebugging-new/src/components/sidebar/Sidebar.js index a6bc202850ad..e4f2ce472211 100644 --- a/devtools/client/aboutdebugging-new/src/components/sidebar/Sidebar.js +++ b/devtools/client/aboutdebugging-new/src/components/sidebar/Sidebar.js @@ -18,6 +18,7 @@ const SidebarItem = createFactory(require("./SidebarItem")); const FIREFOX_ICON = "chrome://devtools/skin/images/aboutdebugging-firefox-logo.svg"; const CONNECT_ICON = "chrome://devtools/skin/images/aboutdebugging-connect-icon.svg"; const GLOBE_ICON = "chrome://devtools/skin/images/aboutdebugging-globe-icon.svg"; +const USB_ICON = "chrome://devtools/skin/images/aboutdebugging-connect-icon.svg"; class Sidebar extends PureComponent { static get propTypes() { @@ -65,7 +66,15 @@ class Sidebar extends PureComponent { selectable: runtimeHasClient, }); }), - ...runtimes.usbRuntimes.map(runtime => dom.li({}, runtime.name)), + ...runtimes.usbRuntimes.map(runtime => + SidebarItem({ + id: `usb-${ runtime.id }`, + dispatch, + icon: USB_ICON, + isSelected: false, + name: runtime.name, + selectable: false, + })), ]; }