From 83f50a7318460b413792dce10bb77554f309b131 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Fri, 11 Mar 2022 07:16:43 -0700 Subject: [PATCH] Formatting --- web/src/Sidebar.jsx | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/web/src/Sidebar.jsx b/web/src/Sidebar.jsx index 4ece2f802..c16250e51 100644 --- a/web/src/Sidebar.jsx +++ b/web/src/Sidebar.jsx @@ -22,11 +22,11 @@ export default function Sidebar() { {Object.entries(cameras) - .filter(([cam, conf]) => conf.gui.show) - .sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)) - .map(([camera]) => ( - - ))} + .filter(([_, conf]) => conf.gui.show) + .sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)) + .map(([camera]) => ( + + ))} ) : null @@ -38,21 +38,21 @@ export default function Sidebar() { {Object.entries(cameras) - .filter(([cam, conf]) => conf.gui.show) - .sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)) - .map(([camera, conf]) => { - if (conf.record.enabled) { - return ( - - ); - } - return null; - })} + .filter(([_, conf]) => conf.gui.show) + .sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)) + .map(([camera, conf]) => { + if (conf.record.enabled) { + return ( + + ); + } + return null; + })} ) : null