From ef46ac4ed003781c19ceda22998160e6dd06a6bb Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Mon, 13 Dec 2021 22:15:27 -0600 Subject: Apparently some automatic formatting --- modern/src/DevicesList.js | 50 +++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'modern/src') diff --git a/modern/src/DevicesList.js b/modern/src/DevicesList.js index fda6f60..b7222a2 100644 --- a/modern/src/DevicesList.js +++ b/modern/src/DevicesList.js @@ -116,44 +116,44 @@ const DeviceRow = ({ data, index, style }) => { return (
{ - dispatch(devicesActions.select(item)); - dispatch(uiActions.setCollapsed(true)); - setTimeout (() => { - dispatch(devicesActions.unselect()); - }, 1000); + dispatch(devicesActions.select(item)); + dispatch(uiActions.setCollapsed(true)); + setTimeout(() => { + dispatch(devicesActions.unselect()); + }, 1000); }}> {/* Avatar */} {/* Status icon */} - + - + {position && position.attributes.out1 == false && ( )} {position && position.attributes.out1 == true && ( - ) } + )} {` ${item.name}`} } secondary={( - <> - {/* Contact */} - {item.contact}
- {position && ( - <> - {/* Speed */} - {formatSpeed(position.speed, speedUnit, t)}
- {/* Datetime */} - {formatDate(position.serverTime)} - {/* Hours */} - {position.attributes.hours && position.attributes.hours > 1 && ` (${formatHours(position.attributes.hours, t)})`} - - )} - - )} classes={{ secondary: classes.listItemSecondary }} /> + <> + {/* Contact */} + {item.contact}
+ {position && ( + <> + {/* Speed */} + {formatSpeed(position.speed, speedUnit, t)}
+ {/* Datetime */} + {formatDate(position.serverTime)} + {/* Hours */} + {position.attributes.hours && position.attributes.hours > 1 && ` (${formatHours(position.attributes.hours, t)})`} + + )} + + )} classes={{ secondary: classes.listItemSecondary }} /> {position && ( @@ -189,7 +189,7 @@ const DeviceView = ({ updateTimestamp, onMenuClick }) => { const filteredItems = useSelector(getFilteredDevices); const unfilteredItems = useSelector(getDevices); - + const items = filteredItems.length > 0 ? filteredItems : unfilteredItems; if (listInnerEl.current) { @@ -211,7 +211,7 @@ const DeviceView = ({ updateTimestamp, onMenuClick }) => { width={width} height={height} itemCount={items.length} - itemData={{items, onMenuClick}} + itemData={{ items, onMenuClick }} itemSize={144} overscanCount={10} innerRef={listInnerEl} -- cgit v1.2.3