From 46b819c200b2353db00c3ce1673e3d9f25dccd87 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Tue, 20 Jan 2026 10:27:16 +0700 Subject: [PATCH] refactor(FE): Use approval step_name or action for status --- .../production/recording/RecordingTable.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/components/pages/production/recording/RecordingTable.tsx b/src/components/pages/production/recording/RecordingTable.tsx index 7808c5bf..8d8caad1 100644 --- a/src/components/pages/production/recording/RecordingTable.tsx +++ b/src/components/pages/production/recording/RecordingTable.tsx @@ -1013,21 +1013,6 @@ const RecordingTable = () => { approvalHistoryModal.openModal(); }; - const getStatusText = (action: string) => { - switch (action) { - case 'APPROVED': - return 'Disetujui'; - case 'REJECTED': - return 'Ditolak'; - case 'CREATED': - return 'Dibuat'; - case 'UPDATED': - return 'Diperbarui'; - default: - return action; - } - }; - return ( { }} onClick={openApprovalHistory} > - {getStatusText(approval.action)} + {approval.step_name || approval.action} ); },