Skip to content

Commit

Permalink
merge with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Jan 24, 2024
2 parents 6ed5754 + 34b4f1a commit e712671
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/tasks/DeduplicationResolutionTask.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const DeduplicationResolutionTaskTableHeaders = () => [];

const DeduplicationResolutionItemFormatters = () => [];

export { DeduplicationResolutionTaskTableHeaders, DeduplicationResolutionItemFormatters };
12 changes: 12 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
import React from 'react';
import { FormattedMessage } from '@openimis/fe-core';
import messagesEn from './translations/en.json';
import DeduplicationFieldSelectionDialog from './components/dialogs/DeduplicationFieldSelectionDialog';
import reducer from './reducer';
import {
DeduplicationResolutionItemFormatters,
DeduplicationResolutionTaskTableHeaders,
} from './components/tasks/DeduplicationResolutionTask';

const DEFAULT_CONFIG = {
translations: [{ key: 'en', messages: messagesEn }],
reducers: [{ key: 'deduplication', reducer }],
'deduplication.deduplicationFieldSelectionDialog': [
DeduplicationFieldSelectionDialog,
],
'tasksManagement.tasks': [{
text: <FormattedMessage module="deduplication" id="tasks.deduplication.title" />,
tableHeaders: DeduplicationResolutionTaskTableHeaders,
itemFormatters: DeduplicationResolutionItemFormatters,
taskSource: ['BenefitPlanDeduplication'],
}],
};

// eslint-disable-next-line import/prefer-default-export
Expand Down
1 change: 1 addition & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"deduplication.deduplicate.button.createDeduplicationReviewTask": "Create Deduplication Review Tasks",
"deduplication.deduplicationSummaryTable.group": "Group",
"deduplication.deduplicationSummaryTable.duplicates": "Duplicates",
"deduplication.tasks.deduplication.title": "Benefit Plan Deduplication Task"
"deduplication.deduplicate.mutation.createTasks": "Deduplication tasks have been created."
}

0 comments on commit e712671

Please sign in to comment.