Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: branch main - restored Metadata component in UO View #754

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
### Novità

- ...

### Fix

- Le date delle card nella Ricerca Eventi vengono mostrate correttamente come impostate nell'evento.
- Ripristinato l'informazione sull'ultimo aggiornamento nel CT UO

## Versione 11.20.2 (12/08/2024)

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
Loading