From 0df0ee49d0345771c3ce8a8a4d8def083115a3aa Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 6 Mar 2024 22:42:01 +0100 Subject: [PATCH] assignee --- public/locales/de/translation.json | 1 + public/locales/en/translation.json | 1 + src/Pages/CrmTest/CrmTest.js | 12 ++++++------ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index c1181b3..b436521 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -273,6 +273,7 @@ ] }, "table": { + "assignedEmployee": "Zugewiesener Mitarbeiter", "firstName": "Vorname", "lastName": "Nachname", "createdAt": "Erstellt am", diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 26a9cef..90e3b6a 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -273,6 +273,7 @@ ] }, "table": { + "assignedEmployee": "Assigned Employee", "firstName": "First Name", "lastName": "Last Name", "createdAt": "Created at", diff --git a/src/Pages/CrmTest/CrmTest.js b/src/Pages/CrmTest/CrmTest.js index 2a7caba..5944c7b 100644 --- a/src/Pages/CrmTest/CrmTest.js +++ b/src/Pages/CrmTest/CrmTest.js @@ -52,8 +52,8 @@ const CRM_TYPE = { SETTER_CLOSER: 2, }; -function MyBadge({ count }) { - return ; +function MyBadge({ count, color = "blue" }) { + return ; } export default function CrmTest() { @@ -99,9 +99,9 @@ export default function CrmTest() { const getTableContent = () => { return [ { - title: "Assignee", - dataIndex: "assignee", - key: "assignee", + title: t("crm.table.assignedEmployee"), + dataIndex: "assignedEmployee", + key: "assignedEmployee", }, { title: t("crm.table.firstName"), @@ -160,7 +160,7 @@ export default function CrmTest() { data.forEach((item) => { items.push({ key: item.Id, - assignee: ( + assignedEmployee: ( <>