Skip to content

Commit

Permalink
Removed reference to headerI18nModule
Browse files Browse the repository at this point in the history
  • Loading branch information
suubi-joshua committed Jul 27, 2024
1 parent 1960c73 commit 9a51bdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/esm-service-queues-app/src/config-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,6 @@ export type ColumnDefinition = {
id: string;
columnType?: ColumnType;
header?: string;
headerI18nModule?: string;
config: ColumnConfig;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down

0 comments on commit 9a51bdf

Please sign in to comment.