From 95b31fb14d0a1b4cac67426742cc6f5538391ba1 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Fri, 14 Aug 2026 01:35:26 -0400 Subject: [PATCH] fix: update STATUS_CONFIG to use labelKey for localization --- src/views/Modals/HistoryDetailModal.jsx | 26 ++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/src/views/Modals/HistoryDetailModal.jsx b/src/views/Modals/HistoryDetailModal.jsx index 2744314..6fc7c3c 100644 --- a/src/views/Modals/HistoryDetailModal.jsx +++ b/src/views/Modals/HistoryDetailModal.jsx @@ -23,13 +23,25 @@ import { TASK_COLOR } from '../../utils/Colors.jsx' import RichTextEditor from '../components/RichTextEditor.jsx' const STATUS_CONFIG = { - 0: { label: t('status.inProgress'), color: 'primary', icon: }, - 1: { label: t('status.completed'), color: 'success', icon: }, - 2: { label: t('status.skipped'), color: 'warning', icon: }, - 3: { label: t('status.pendingApproval'), color: 'neutral', icon: }, - 4: { label: t('status.rejected'), color: 'danger', icon: }, - 5: { label: t('status.missed'), color: 'danger', icon: }, - 6: { label: t('status.rescheduled'), color: 'warning', icon: }, + 0: { + labelKey: 'status.inProgress', + color: 'primary', + icon: , + }, + 1: { labelKey: 'status.completed', color: 'success', icon: }, + 2: { labelKey: 'status.skipped', color: 'warning', icon: }, + 3: { + labelKey: 'status.pendingApproval', + color: 'neutral', + icon: , + }, + 4: { labelKey: 'status.rejected', color: 'danger', icon: }, + 5: { + labelKey: 'status.missed', + color: 'danger', + icon: , + }, + 6: { labelKey: 'status.rescheduled', color: 'warning', icon: }, } const DetailRow = ({ icon, label, value, children }) => (