From 74a9ad955b2feb17190b7f1a36e09eee685b2a0e Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 24 Nov 2022 09:30:52 +0000 Subject: [PATCH] [WIFI-11728] Added 6G associations to device table Signed-off-by: Charles --- package-lock.json | 4 ++-- package.json | 2 +- src/hooks/Network/Devices.ts | 1 + src/pages/Devices/ListCard/index.tsx | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5cdd4af..a7833bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ucentral-client", - "version": "2.8.0(18)", + "version": "2.8.0(20)", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ucentral-client", - "version": "2.8.0(18)", + "version": "2.8.0(20)", "license": "ISC", "dependencies": { "@chakra-ui/icons": "^2.0.11", diff --git a/package.json b/package.json index e9afca6..254f727 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucentral-client", - "version": "2.8.0(18)", + "version": "2.8.0(20)", "description": "", "private": true, "main": "index.tsx", diff --git a/src/hooks/Network/Devices.ts b/src/hooks/Network/Devices.ts index 7e7ffba..1295731 100644 --- a/src/hooks/Network/Devices.ts +++ b/src/hooks/Network/Devices.ts @@ -41,6 +41,7 @@ export type DeviceWithStatus = { UUID: number; associations_2G: number; associations_5G: number; + associations_6G: number; compatible: string; connected: boolean; certificateExpiryDate?: number; diff --git a/src/pages/Devices/ListCard/index.tsx b/src/pages/Devices/ListCard/index.tsx index 8745a52..c7f6969 100644 --- a/src/pages/Devices/ListCard/index.tsx +++ b/src/pages/Devices/ListCard/index.tsx @@ -200,7 +200,7 @@ const DeviceListCard = () => { ), [], ); - const numberCell = React.useCallback((v: number) => , []); + const numberCell = React.useCallback((v?: number) => , []); const actionCell = React.useCallback( (device: DeviceWithStatus) => ( { Header: '6G', Footer: '', accessor: 'associations_6G', - Cell: () => numberCell(0), + Cell: (v) => numberCell(v.cell.row.original.associations_6G), customWidth: '50px', disableSortBy: true, },