feat: update device management to include device description and change status display

This commit is contained in:
2025-10-21 15:23:02 +07:00
parent 4bd0348a2a
commit 5ec26ecbe8
2 changed files with 6 additions and 5 deletions

View File

@@ -48,13 +48,13 @@ const columns = (showPreviewModal, showEditModal, showDeleteDialog) => [
},
{
title: 'Status',
dataIndex: 'device_status',
key: 'device_status',
dataIndex: 'is_active',
key: 'is_active',
width: '10%',
align: 'center',
render: (_, { device_status }) => (
render: (_, { is_active }) => (
<>
{device_status === true ? (
{is_active === true ? (
<Tag color={'green'} key={'status'}>
Running
</Tag>