From 03298d2f1aaef945aa3de6d32e60957029da12f6 Mon Sep 17 00:00:00 2001 From: Michel Erokhov Date: Tue, 12 Nov 2024 15:52:11 +0100 Subject: [PATCH] feat(WorkerStatus): update worker status text (#117) --- src/components/WorkerStatus.tsx | 2 +- src/pages/deal/MatchingTable.tsx | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/WorkerStatus.tsx b/src/components/WorkerStatus.tsx index 0325e0a..bc67a1b 100644 --- a/src/components/WorkerStatus.tsx +++ b/src/components/WorkerStatus.tsx @@ -23,7 +23,7 @@ export const WorkerStatus: React.FC = ({ return ( - Waiting... + Waiting registration ) diff --git a/src/pages/deal/MatchingTable.tsx b/src/pages/deal/MatchingTable.tsx index 255d5e6..60968cc 100644 --- a/src/pages/deal/MatchingTable.tsx +++ b/src/pages/deal/MatchingTable.tsx @@ -19,6 +19,7 @@ import { useApiQuery } from '../../hooks' import { formatHexData } from '../../utils/helpers' const template = [ + '30px', 'minmax(10px, 1fr)', 'minmax(10px, 1fr)', 'minmax(10px, 1fr)', @@ -45,6 +46,7 @@ export const MatchingTable: React.FC = ({ dealId }) => { <> + # Worker Id Provider Id Compute Unit @@ -56,8 +58,8 @@ export const MatchingTable: React.FC = ({ dealId }) => { isLoading={isLoading} noDataText="No found any workers" > - {data?.data.map((worker) => ( - + {data?.data.map((worker, index) => ( + ))} @@ -66,29 +68,29 @@ export const MatchingTable: React.FC = ({ dealId }) => { } interface WorkerDetailRowProps { worker: WorkerDetail + index: number } -const WorkerDetailRow: React.FC = ({ worker }) => { +const WorkerDetailRow: React.FC = ({ worker, index }) => { return ( - {/* # */} + + {index + 1} + {formatHexData(worker.id, 10, 10)} - {/* Provider ID */} {formatHexData(worker.providerId, 10, 10)} - {/* Compute Unit */} {worker.cuCount} - {/* Status */}