diff --git a/src/components/ItaliaTheme/View/BandoView/BandoAreaResponsabile.jsx b/src/components/ItaliaTheme/View/BandoView/BandoAreaResponsabile.jsx
index 6388cc4d1..155e0fec1 100644
--- a/src/components/ItaliaTheme/View/BandoView/BandoAreaResponsabile.jsx
+++ b/src/components/ItaliaTheme/View/BandoView/BandoAreaResponsabile.jsx
@@ -1,3 +1,6 @@
+/**
+ * BandoAreaResponsabile component used in BandoView.
+ */
import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, useIntl } from 'react-intl';
diff --git a/src/components/ItaliaTheme/View/Commons/CuredBy.jsx b/src/components/ItaliaTheme/View/Commons/CuredBy.jsx
index abe3607d5..68bf1b341 100644
--- a/src/components/ItaliaTheme/View/Commons/CuredBy.jsx
+++ b/src/components/ItaliaTheme/View/Commons/CuredBy.jsx
@@ -1,3 +1,7 @@
+/*
+ * CuredBy component class, used in `NewsItemACuraDi` component.
+ */
+
import { defineMessages, useIntl } from 'react-intl';
import React from 'react';
import PropTypes from 'prop-types';
@@ -24,15 +28,7 @@ const messages = defineMessages({
},
});
-/**
- * CuredBy view component class.
- * @function CuredBy
- * @params {object} content: Content object.
- * @params {string} office_field: field where office is related
- * @params {string} office_field: field where people is related
- * @returns {string} Markup of the component.
- */
-const CuredBy = ({ office, people, title }) => {
+const CuredBy = ({ office, people }) => {
const intl = useIntl();
return (
);
- const cooked_image_field =
- image_field || (item.preview_image ? 'preview_image' : 'image');
+ const cooked_image_field = image_field || item.image_field;
+ // (item.preview_image ? 'preview_image' : 'image');
const image =
showimage &&
item &&
diff --git a/src/components/ItaliaTheme/View/Commons/LocationItem.jsx b/src/components/ItaliaTheme/View/Commons/LocationItem.jsx
index 27ede58a8..6c6192bd3 100644
--- a/src/components/ItaliaTheme/View/Commons/LocationItem.jsx
+++ b/src/components/ItaliaTheme/View/Commons/LocationItem.jsx
@@ -2,12 +2,10 @@
* Component used to display a location item (luoghi_correlati)
* in VenueDescription, subcomponents of VenueView (luogo)
*/
-import React, { useEffect } from 'react';
-import { useDispatch, useSelector } from 'react-redux';
+import React from 'react';
import { defineMessages, useIntl } from 'react-intl';
import { UniversalLink } from '@plone/volto/components';
import PropTypes from 'prop-types';
-import { getContent, resetContent } from '@plone/volto/actions';
import { flattenToAppURL } from '@plone/volto/helpers';
import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
import config from '@plone/volto/registry';
diff --git a/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx b/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx
index fb53488ef..b16e3292b 100644
--- a/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx
+++ b/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx
@@ -13,7 +13,6 @@ import config from '@plone/volto/registry';
*/
const OfficeCard = ({
office,
- load_data = true,
icon,
children,
margin_bottom = false,
diff --git a/src/components/ItaliaTheme/View/Commons/RelatedArticles.jsx b/src/components/ItaliaTheme/View/Commons/RelatedArticles.jsx
index d340df287..ea6d4f23c 100644
--- a/src/components/ItaliaTheme/View/Commons/RelatedArticles.jsx
+++ b/src/components/ItaliaTheme/View/Commons/RelatedArticles.jsx
@@ -31,7 +31,6 @@ const RelatedArticles = ({
diff --git a/src/components/ItaliaTheme/View/Commons/Sponsors.jsx b/src/components/ItaliaTheme/View/Commons/Sponsors.jsx
index 1de5917fb..0675747ff 100644
--- a/src/components/ItaliaTheme/View/Commons/Sponsors.jsx
+++ b/src/components/ItaliaTheme/View/Commons/Sponsors.jsx
@@ -34,9 +34,9 @@ const Sponsor = ({ item }) => {
});
return item ? (
) : null;
};
diff --git a/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx b/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx
index 7bbb21b30..79bf7b33d 100644
--- a/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx
+++ b/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx
@@ -32,7 +32,7 @@ const Location = ({ location, show_icon }) => {
{show_icon &&
}
-
{location.title}
+
{location.title}
{(location.street || location.zip_code) && (
diff --git a/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx b/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx
index bf2c45f4f..2dc632d07 100644
--- a/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx
+++ b/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx
@@ -128,11 +128,7 @@ const IncaricoView = (props) => {
title={intl.formatMessage(messages.ufficio)}
>
{content.unita_organizzativa?.map((item) => (
-
+
))}
)}
@@ -142,11 +138,7 @@ const IncaricoView = (props) => {
title={intl.formatMessage(messages.responsabile)}
>
{content.responsabile_struttura?.map((item) => (
-
+
))}
)}
diff --git a/src/components/ItaliaTheme/View/NewsItemView/NewsItemACuraDi.jsx b/src/components/ItaliaTheme/View/NewsItemView/NewsItemACuraDi.jsx
index 871286e93..afdc83ea9 100644
--- a/src/components/ItaliaTheme/View/NewsItemView/NewsItemACuraDi.jsx
+++ b/src/components/ItaliaTheme/View/NewsItemView/NewsItemACuraDi.jsx
@@ -1,3 +1,6 @@
+/*
+ * NewsItemACuraDi component class, used in `NewsItemView`.
+ */
import React from 'react';
import PropTypes from 'prop-types';
diff --git a/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx b/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx
index 0c1b62f00..d834bb72f 100644
--- a/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx
+++ b/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx
@@ -136,11 +136,6 @@ const PaginaArgomentoView = ({ content }) => {
{
@@ -62,11 +61,7 @@ const ServizioAccedi = ({ content }) => {
key={dove['@id']}
className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal"
>
-
+
))}
{
))}
@@ -49,7 +48,6 @@ const ServizioContatti = ({ content }) => {
))}
diff --git a/src/components/ItaliaTheme/View/UOView/UOStructure.jsx b/src/components/ItaliaTheme/View/UOView/UOStructure.jsx
index 32574f213..bffa87c4c 100644
--- a/src/components/ItaliaTheme/View/UOView/UOStructure.jsx
+++ b/src/components/ItaliaTheme/View/UOView/UOStructure.jsx
@@ -70,7 +70,6 @@ const UOStructure = ({ content }) => {
@@ -88,7 +87,6 @@ const UOStructure = ({ content }) => {
);
@@ -104,11 +102,7 @@ const UOStructure = ({ content }) => {
{content.legami_con_altre_strutture.map((item, _i) => (
-
+
))}
diff --git a/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx b/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx
index 270943399..7f6dd0433 100644
--- a/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx
+++ b/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx
@@ -160,7 +160,7 @@ const VenueContacts = ({ content }) => {
//STRUTTURE RESPONSABILI CORRELATE
{content?.struttura_responsabile_correlati?.map((item, i) => (
-
+
))}
) : (