mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-10-29 17:32:20 +00:00
Merge pull request #131 from stephb9959/main
[WIFI-11728] Added 6G associations to device table
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "2.8.0(18)",
|
"version": "2.8.0(20)",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "2.8.0(18)",
|
"version": "2.8.0(20)",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/icons": "^2.0.11",
|
"@chakra-ui/icons": "^2.0.11",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "2.8.0(18)",
|
"version": "2.8.0(20)",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "index.tsx",
|
"main": "index.tsx",
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ export type DeviceWithStatus = {
|
|||||||
UUID: number;
|
UUID: number;
|
||||||
associations_2G: number;
|
associations_2G: number;
|
||||||
associations_5G: number;
|
associations_5G: number;
|
||||||
|
associations_6G: number;
|
||||||
compatible: string;
|
compatible: string;
|
||||||
connected: boolean;
|
connected: boolean;
|
||||||
certificateExpiryDate?: number;
|
certificateExpiryDate?: number;
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ const DeviceListCard = () => {
|
|||||||
),
|
),
|
||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
const numberCell = React.useCallback((v: number) => <NumberCell value={v} />, []);
|
const numberCell = React.useCallback((v?: number) => <NumberCell value={v !== undefined ? v : 0} />, []);
|
||||||
const actionCell = React.useCallback(
|
const actionCell = React.useCallback(
|
||||||
(device: DeviceWithStatus) => (
|
(device: DeviceWithStatus) => (
|
||||||
<Actions
|
<Actions
|
||||||
@@ -324,7 +324,7 @@ const DeviceListCard = () => {
|
|||||||
Header: '6G',
|
Header: '6G',
|
||||||
Footer: '',
|
Footer: '',
|
||||||
accessor: 'associations_6G',
|
accessor: 'associations_6G',
|
||||||
Cell: () => numberCell(0),
|
Cell: (v) => numberCell(v.cell.row.original.associations_6G),
|
||||||
customWidth: '50px',
|
customWidth: '50px',
|
||||||
disableSortBy: true,
|
disableSortBy: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user