From 9a51bdff21a013b11610378ffd64f03bf023bd92 Mon Sep 17 00:00:00 2001 From: suubi-joshua Date: Sat, 27 Jul 2024 21:18:19 +0300 Subject: [PATCH] Removed reference to headerI18nModule --- packages/esm-service-queues-app/src/config-schema.ts | 1 - .../src/queue-table/cells/columns.resource.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/esm-service-queues-app/src/config-schema.ts b/packages/esm-service-queues-app/src/config-schema.ts index 2238054d8..65bee8020 100644 --- a/packages/esm-service-queues-app/src/config-schema.ts +++ b/packages/esm-service-queues-app/src/config-schema.ts @@ -435,7 +435,6 @@ export type ColumnDefinition = { id: string; columnType?: ColumnType; header?: string; - headerI18nModule?: string; config: ColumnConfig; }; diff --git a/packages/esm-service-queues-app/src/queue-table/cells/columns.resource.ts b/packages/esm-service-queues-app/src/queue-table/cells/columns.resource.ts index 5f06fd12f..1343052b6 100644 --- a/packages/esm-service-queues-app/src/queue-table/cells/columns.resource.ts +++ b/packages/esm-service-queues-app/src/queue-table/cells/columns.resource.ts @@ -83,9 +83,9 @@ export function useColumns(queue: string, status: string): QueueTableColumn[] { } function getColumnFromDefinition(t: TFunction, columnDef: ColumnDefinition): QueueTableColumn { - const { id, header, headerI18nModule, columnType } = columnDef; + const { id, header, columnType } = columnDef; - const translatedHeader = header ? translateFrom(headerI18nModule ?? '@openmrs/esm-service-queues-app', header) : null; + const translatedHeader = header ? t(header) : null; switch (columnType ?? id) { case 'patient-name': {