Skip to content

Commit

Permalink
fix: restored Metadata component in UO View (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni authored Sep 3, 2024
1 parent 83cefdd commit 2dde96b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
- ...
-->

## Versione X.X.X (dd/mm/yyyy)

### Fix

- Ripristinato l'informazione sull'ultimo aggiornamento nel CT UO

## Versione 11.21.0 (14/08/2024)

### Fix
Expand Down
12 changes: 12 additions & 0 deletions src/components/ItaliaTheme/View/UOView/UOMetadati.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import PropTypes from 'prop-types';
import { Metadata } from 'design-comuni-plone-theme/components/ItaliaTheme/View';

const UOMetadati = ({ content }) => {
return <Metadata content={content} showSectionTitle={false} />;
};

UOMetadati.propTypes = {
content: PropTypes.object,
};

export default UOMetadati;
3 changes: 3 additions & 0 deletions src/components/ItaliaTheme/View/UOView/UOView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
UODocuments,
UOWhatDoesItDo,
UOMoreInfos,
UOMetadati,
RelatedItemInEvidence,
SkipToMainContent,
ContentTypeViewSections,
Expand Down Expand Up @@ -46,6 +47,8 @@ export const UOViewSectionsOrder = [
{ /* DOCUMENTI */ component: UODocuments },

{ /* ULTERIORI INFORMAZIONI */ component: UOMoreInfos },

{ /*METADATI*/ component: UOMetadati },
];

/**
Expand Down
1 change: 1 addition & 0 deletions src/components/ItaliaTheme/View/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export UOContacts from 'design-comuni-plone-theme/components/ItaliaTheme/View/UO
export UOContactsLocations from 'design-comuni-plone-theme/components/ItaliaTheme/View/UOView/UOContactsParts/UOContactsLocations';
export UOContactsContacts from 'design-comuni-plone-theme/components/ItaliaTheme/View/UOView/UOContactsParts/UOContactsContacts';
export UOContactsSediSecondarie from 'design-comuni-plone-theme/components/ItaliaTheme/View/UOView/UOContactsParts/UOContactsSediSecondarie';
export UOMetadati from 'design-comuni-plone-theme/components/ItaliaTheme/View/UOView/UOMetadati';

export UODocuments from 'design-comuni-plone-theme/components/ItaliaTheme/View/UOView/UODocuments';
export UOWhatDoesItDo from 'design-comuni-plone-theme/components/ItaliaTheme/View/UOView/UOWhatDoesItDo';
Expand Down

0 comments on commit 2dde96b

Please sign in to comment.