From 962c18fe75225c71602ca774a3297154420d7d8e Mon Sep 17 00:00:00 2001 From: Liang Li Date: Tue, 5 Nov 2024 16:51:05 +0800 Subject: [PATCH] feat: add reserved size on volume page --- src/app/features/volume/components/List.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/app/features/volume/components/List.tsx b/src/app/features/volume/components/List.tsx index 3700c94..cb3eeca 100644 --- a/src/app/features/volume/components/List.tsx +++ b/src/app/features/volume/components/List.tsx @@ -224,14 +224,17 @@ export const List = () => { dataIndex: 'device_path', }, { - title: 'Allocated/Size', + title: 'Allocated Size', key: 'allocated', render: (_, record) => { - return ( - - {formatBytes(record.allocated_size_kib ?? 0)}/{formatBytes(record.size_kib ?? 0)} - - ); + return {formatBytes(record.allocated_size_kib ?? 0)}; + }, + }, + { + title: 'Reserved Size', + key: 'reserved', + render: (_, record) => { + return {formatBytes(record.size_kib ?? 0)}; }, }, {