diff --git a/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx b/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx index d9b10f692..d544576de 100644 --- a/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx +++ b/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx @@ -35,6 +35,7 @@ const BandoApprofondimenti = ({ content }) => { description={item.description} download_url={item.url} item={item} + showModified={true} /> // item={item} viene utilizzato nelle customizzazioni per ottenere altre proprietà ); diff --git a/src/components/ItaliaTheme/View/Commons/Attachment.jsx b/src/components/ItaliaTheme/View/Commons/Attachment.jsx index 2ff8f4c37..8b58f0033 100644 --- a/src/components/ItaliaTheme/View/Commons/Attachment.jsx +++ b/src/components/ItaliaTheme/View/Commons/Attachment.jsx @@ -21,7 +21,13 @@ const messages = defineMessages({ }, }); -const Attachment = ({ title, description, download_url, item }) => { +const Attachment = ({ + title, + description, + download_url, + item, + showModified = false, +}) => { const intl = useIntl(); return ( { {description &&

{description}

} +<<<<<<< Updated upstream {item?.modified &&

{intl.formatMessage(messages.last_update)}{' '} {viewDate(intl.locale, item?.modified, 'DD-MM-Y HH:MM')}

} +======= + {showModified && ( +

+ {intl.formatMessage(messages.last_update)}{' '} + {viewDate(intl.locale, item?.modified, 'DD-MM-Y HH:MM')} +

+ )} +>>>>>>> Stashed changes
);