From ef6e8de895106138c2c86a2d944d7c68513ba513 Mon Sep 17 00:00:00 2001 From: Carter Date: Thu, 13 Feb 2025 10:49:37 -0600 Subject: [PATCH] minor spacing stuff --- src/component/ComponentHistory.tsx | 2 +- src/device/DevicesSummary.tsx | 58 ++++++++++++++---------------- src/pages/DeviceHistory.tsx | 1 - src/pages/Devices.tsx | 8 ++--- 4 files changed, 32 insertions(+), 37 deletions(-) diff --git a/src/component/ComponentHistory.tsx b/src/component/ComponentHistory.tsx index 8173b12..8c6f56c 100644 --- a/src/component/ComponentHistory.tsx +++ b/src/component/ComponentHistory.tsx @@ -33,7 +33,7 @@ export default function ComponentHistory(props: Props) { offset: or(res.data.nextOffset, 0) }); }) - .catch((err: any) => { + .catch((_err: any) => { resolve({ records: [] as Record[], total: 0, diff --git a/src/device/DevicesSummary.tsx b/src/device/DevicesSummary.tsx index 003dc6b..186a1eb 100644 --- a/src/device/DevicesSummary.tsx +++ b/src/device/DevicesSummary.tsx @@ -88,38 +88,34 @@ export default function DevicesSummary(props: Props) { return ( - {loadingStats ? - - : - setSelected("total")} - > - - - } - /> - - - - {stats.total} Devices - - - Total - - + setSelected("total")} + > + + + } + /> - - } + + + {stats.total} Devices + + + Total + + + + - {device.settings?.deviceId} - + {device.settings?.deviceId} + }, { title: "Device", @@ -354,7 +354,7 @@ export default function Devices() { > {groupsLoading ? - }/> + }/> : groups.map((group, index) => { if (group.id()) return ( {group.name()}} key={"group-tab-"+index}/>