Skip to content

Commit

Permalink
update(connector-management): code optimise
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw committed Jun 5, 2024
1 parent 5b4ae24 commit 09d22ce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 28 deletions.
5 changes: 1 addition & 4 deletions src/assets/locales/de/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,7 @@
},
"configurationDetails": {
"title": "So konfigurieren Sie Ihren Connector",
"description1": "Diese Beschreibung enthält Schritt-für-Schritt-Anleitungen zur Konfiguration Ihres Connectors.",
"description2": "Bitte befolgen Sie die nachstehenden Anweisungen, um die erforderlichen Konfigurationswerte festzulegen.",
"description3": "Stellen Sie sicher, dass Sie für jede Konfigurationseinstellung die richtigen Werte eingeben.",
"description4": "Sobald Sie diese Werte festgelegt haben, ist Ihr Connector ordnungsgemäß konfiguriert und einsatzbereit.",
"description": "Diese Beschreibung enthält Schritt-für-Schritt-Anleitungen zur Konfiguration Ihres Connectors.<br/> Bitte befolgen Sie die nachstehenden Anweisungen, um die erforderlichen Konfigurationswerte festzulegen.<br/>Stellen Sie sicher, dass Sie für jede Konfigurationseinstellung die richtigen Werte eingeben.<br/> Sobald Sie diese Werte festgelegt haben, ist Ihr Connector ordnungsgemäß konfiguriert und einsatzbereit.",
"learnMore": "Lern mehr",
"clientId": "Client-ID Ihres technischen Benutzers",
"secret": "Geheimnis",
Expand Down
5 changes: 1 addition & 4 deletions src/assets/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,7 @@
},
"configurationDetails": {
"title": "How to Configure Your Connector",
"description1": "This description provides step-by-step instructions on how to configure your connector.",
"description2": "Please follow the instructions below to set the necessary configuration values.",
"description3": "Ensure that you enter the correct values for each configuration setting.",
"description4": "Once you have set these values, your connector will be properly configured and ready to use.",
"description": "This description provides step-by-step instructions on how to configure your connector.<br/>Please follow the instructions below to set the necessary configuration values.<br/>Ensure that you enter the correct values for each configuration setting.<br/>Once you have set these values, your connector will be properly configured and ready to use.",
"learnMore": "learn more",
"clientId": "Client ID of your technical user",
"secret": "Secret",
Expand Down
33 changes: 13 additions & 20 deletions src/components/pages/EdcConnector/ConfigurationDetailsOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

import { useTranslation } from 'react-i18next'
import { Trans, useTranslation } from 'react-i18next'
import {
Button,
Dialog,
Expand Down Expand Up @@ -71,13 +71,13 @@ const ConfigurationDetailsOverlay = ({
copy: [
[
{
icon: true,
icon: data?.trusted_issuer ? true : false,
copyValue: data?.trusted_issuer ?? '',
},
],
[
{
icon: true,
icon: data?.decentralIdentityManagementAuthUrl ? true : false,
copyValue: data?.decentralIdentityManagementAuthUrl ?? '',
},
],
Expand All @@ -93,25 +93,25 @@ const ConfigurationDetailsOverlay = ({
],
[
{
icon: true,
icon: data?.decentralIdentityManagementServiceUrl ? true : false,
copyValue: data?.decentralIdentityManagementServiceUrl ?? '',
},
],
[
{
icon: true,
icon: data?.participant_id ? true : false,
copyValue: data?.participant_id ?? '',
},
],
[
{
icon: true,
icon: data?.iatp_id ? true : false,
copyValue: data?.iatp_id ?? '',
},
],
[
{
icon: true,
icon: data?.did_resolver ? true : false,
copyValue: data?.did_resolver ?? '',
},
],
Expand All @@ -132,22 +132,15 @@ const ConfigurationDetailsOverlay = ({
<Box
sx={{
textAlign: 'center',
margin: '50px auto 0px',
margin: '50px auto 20px',
display: 'grid',
}}
>
<Typography variant="label3">
{t('content.edcconnector.configurationDetails.description1')}
</Typography>
<Typography variant="label3">
{t('content.edcconnector.configurationDetails.description2')}
</Typography>
<Typography variant="label3">
{t('content.edcconnector.configurationDetails.description3')}
</Typography>
<Typography variant="label3">
{t('content.edcconnector.configurationDetails.description4')}
</Typography>
<Trans>
<Typography variant="label3">
{t('content.edcconnector.configurationDetails.description')}
</Typography>
</Trans>
</Box>
}
closeWithIcon={true}
Expand Down

0 comments on commit 09d22ce

Please sign in to comment.