Skip to content

Commit

Permalink
feat(webapp): added code of conduct to BP
Browse files Browse the repository at this point in the history
  • Loading branch information
fvives99 committed Nov 9, 2022
1 parent a38f4a0 commit ecd5a5e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/components/InformationCard/ProducerInformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ const ProducerInformation = ({ info, classes, t }) => {
</Typography>
)}
</div>
<RowUrl title={t('website')} value={info?.website} />
<RowUrl title={t('website')} value={info?.website} />
<RowUrl
title={t('email')}
value={info?.email}
href={`mailto:${info.email}`}
/>
<RowUrl title={t('ownershipDisclosure')} value={info?.ownership} />
<RowUrl title={t('codeofconduct')} value={info?.code_of_conduct} />
<RowUrl title={t('chainResources')} value={info?.chain} />
{!!info?.otherResources?.length && (
<div>
Expand Down
1 change: 1 addition & 0 deletions webapp/src/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
"technicalContact": "Technical Contact",
"social": "Social",
"ownershipDisclosure": "Ownership Disclosure",
"codeofconduct": "Code of Conduct",
"chainResources": "Chain Resources",
"otherResources": "Other Resources",
"email": "Email",
Expand Down
1 change: 1 addition & 0 deletions webapp/src/language/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions webapp/src/utils/formatData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ecd5a5e

Please sign in to comment.