From 2b0204ee98f4954412c50a50205d00d621c6d334 Mon Sep 17 00:00:00 2001 From: nidhigarg-bmw <101316912+nidhigarg-bmw@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:41:51 +0530 Subject: [PATCH] feat(technical integration): remove unused code (#190) --- src/assets/locales/de/main.json | 2 +- src/assets/locales/en/main.json | 2 +- .../AddTechnicalUser/TechnicalUserAddForm.tsx | 10 +++++++-- .../overlays/AddTechnicalUser/index.tsx | 21 ------------------- 4 files changed, 10 insertions(+), 25 deletions(-) diff --git a/src/assets/locales/de/main.json b/src/assets/locales/de/main.json index c4acdc0b9..b62ad68e4 100644 --- a/src/assets/locales/de/main.json +++ b/src/assets/locales/de/main.json @@ -788,7 +788,7 @@ "roleDesc": "Role Description Details", "technicalUser": { "addOverlay": { - "service": "Dienst", + "service": "Technical User Role", "serviceSubHeading": "Select one service roles:", "username": "Username", "description": "Beschreibung", diff --git a/src/assets/locales/en/main.json b/src/assets/locales/en/main.json index acd1f8e99..dc796cab3 100644 --- a/src/assets/locales/en/main.json +++ b/src/assets/locales/en/main.json @@ -786,7 +786,7 @@ "roleDesc": "Role Description Details", "technicalUser": { "addOverlay": { - "service": "Service", + "service": "Technical User Role", "serviceSubHeading": "Select one service roles:", "username": "Username", "description": "Description", diff --git a/src/components/overlays/AddTechnicalUser/TechnicalUserAddForm.tsx b/src/components/overlays/AddTechnicalUser/TechnicalUserAddForm.tsx index ba565448d..46417def3 100644 --- a/src/components/overlays/AddTechnicalUser/TechnicalUserAddForm.tsx +++ b/src/components/overlays/AddTechnicalUser/TechnicalUserAddForm.tsx @@ -54,7 +54,10 @@ const TechnicalUserAddFormSelect = ({ ( - + {t('content.addUser.technicalUser.addOverlay.service')} @@ -116,7 +119,10 @@ const TechnicalUserAddFormTextfield = ({ ( <> - + {label} { const [addServiceAccount] = useAddServiceAccountMutation() const [loading, setLoading] = useState(false) - const { data } = useFetchOwnUserDetailsQuery() const handleConfirm = async (formValues: DefaultFormFieldValuesType) => { setLoading(true) @@ -80,24 +77,6 @@ export const AddTechnicalUser = () => { //openAddTechnicalUserResponseOverlay() } - const userDetailsData = { - cardCategory: t('content.addUser.technicalUser.addOverlay.spocHeadline'), - cardContentItems: { - organizsationName: { - label: t('content.addUser.technicalUser.addOverlay.org'), - value: data ? data.company : '', - }, - username: { - label: t('content.addUser.technicalUser.addOverlay.name'), - value: data ? `${data.firstName} ${data.lastName}` : '', - }, - eMailAddress: { - label: t('content.addUser.technicalUser.addOverlay.email'), - value: data ? data.email : '', - }, - }, - } - const defaultFormFieldValues = { TechnicalUserName: '', TechnicalUserService: 'none',