From ecd5a5e9985b6ff8cf0b3cec4c234968bb090bad Mon Sep 17 00:00:00 2001 From: Fabian Vives Date: Wed, 9 Nov 2022 13:24:42 -0600 Subject: [PATCH] feat(webapp): added code of conduct to BP --- webapp/src/components/InformationCard/ProducerInformation.js | 3 ++- webapp/src/language/en.json | 1 + webapp/src/language/es.json | 1 + webapp/src/utils/formatData.js | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/InformationCard/ProducerInformation.js b/webapp/src/components/InformationCard/ProducerInformation.js index bebb51c2..b9b1a4ad 100644 --- a/webapp/src/components/InformationCard/ProducerInformation.js +++ b/webapp/src/components/InformationCard/ProducerInformation.js @@ -37,13 +37,14 @@ const ProducerInformation = ({ info, classes, t }) => { )} - + + {!!info?.otherResources?.length && (
diff --git a/webapp/src/language/en.json b/webapp/src/language/en.json index bc514117..db5ea1ec 100644 --- a/webapp/src/language/en.json +++ b/webapp/src/language/en.json @@ -228,6 +228,7 @@ "technicalContact": "Technical Contact", "social": "Social", "ownershipDisclosure": "Ownership Disclosure", + "codeofconduct": "Code of Conduct", "chainResources": "Chain Resources", "otherResources": "Other Resources", "email": "Email", diff --git a/webapp/src/language/es.json b/webapp/src/language/es.json index ce7a8002..dab0ff7e 100644 --- a/webapp/src/language/es.json +++ b/webapp/src/language/es.json @@ -234,6 +234,7 @@ "technicalContact": "Contacto técnico", "social": "Social", "ownershipDisclosure": "Divulgación de propiedad", + "codeofconduct": "Código de conducta", "chainResources": "Recursos de la cadena", "otherResources": "Otros recursos", "email": "Correo electrónico", diff --git a/webapp/src/utils/formatData.js b/webapp/src/utils/formatData.js index d580129b..e6d2fd88 100644 --- a/webapp/src/utils/formatData.js +++ b/webapp/src/utils/formatData.js @@ -76,6 +76,7 @@ export const formatData = ( country: data.location?.country || null, website: data?.website || '', email: data.email, + code_of_conduct: data?.code_of_conduct || null, ownership: data?.ownership_disclosure || null, bussinesContact: data.bussines_contact || null, technicalContact: data.technical_contact || null,