From 043ac87570eb385fc3db239d45596f9d7cb30b1d Mon Sep 17 00:00:00 2001 From: Arturo Buono Date: Thu, 8 Feb 2024 16:03:37 +0100 Subject: [PATCH] feat(privacy-news): updates 20240208 --- fe-piattaforma/src/components/CardSlider/cardSlider.tsx | 2 +- fe-piattaforma/src/components/ForumLayout/ForumLayout.tsx | 2 +- fe-piattaforma/src/components/PreviewCard/PreviewCard.tsx | 2 +- .../src/components/ReportFlow/reportFlowCard.tsx | 2 +- .../AdministrativeArea/Entities/modals/manageNews.tsx | 8 ++++---- .../src/pages/common/Privacy/PrivacyDisclaimer.tsx | 8 ++++---- .../BachecaDigitaleWidget/bachecaDigitaleWidget.tsx | 4 ++-- .../src/pages/forms/formForum/formPublishNews.tsx | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/fe-piattaforma/src/components/CardSlider/cardSlider.tsx b/fe-piattaforma/src/components/CardSlider/cardSlider.tsx index 0d972cd1f..32a3d5c4b 100644 --- a/fe-piattaforma/src/components/CardSlider/cardSlider.tsx +++ b/fe-piattaforma/src/components/CardSlider/cardSlider.tsx @@ -54,7 +54,7 @@ const CardSlider: React.FC = (props) => { aria-label={`Categoria: ${category_label}. Data: ${ date && formatDate(date, 'shortDate') }. Titolo ${ - isDocument ? 'documento' : isNews ? 'news' : 'topic' + isDocument ? 'documento' : isNews ? 'annuncio' : 'topic' }: ${title}. ${likes} like. ${comment_count} ${ Number(comment_count) === 1 ? 'commento' : 'commenti' }. ${downloads} download. ${views} ${ diff --git a/fe-piattaforma/src/components/ForumLayout/ForumLayout.tsx b/fe-piattaforma/src/components/ForumLayout/ForumLayout.tsx index a66f2d28d..f614e0a9e 100644 --- a/fe-piattaforma/src/components/ForumLayout/ForumLayout.tsx +++ b/fe-piattaforma/src/components/ForumLayout/ForumLayout.tsx @@ -283,7 +283,7 @@ const ForumLayout: React.FC = (props) => { onClick={cta} data-testid='create-new-entity' aria-label={`Crea ${ - isForum ? 'Argomento' : isDocument ? 'documento' : 'news' + isForum ? 'Argomento' : isDocument ? 'documento' : 'annuncio' }`} > {iconCta ? ( diff --git a/fe-piattaforma/src/components/PreviewCard/PreviewCard.tsx b/fe-piattaforma/src/components/PreviewCard/PreviewCard.tsx index b3059c235..1830ba748 100644 --- a/fe-piattaforma/src/components/PreviewCard/PreviewCard.tsx +++ b/fe-piattaforma/src/components/PreviewCard/PreviewCard.tsx @@ -39,7 +39,7 @@ const PreviewCard = ({ disabled = false, onClick }: PreviewCardI) => { Guarda l'anteprima

- Visualizza l' anteprima della news prima di pubblicarla + Visualizza l' anteprima dell'annuncio prima di pubblicarlo

diff --git a/fe-piattaforma/src/components/ReportFlow/reportFlowCard.tsx b/fe-piattaforma/src/components/ReportFlow/reportFlowCard.tsx index bdf690c23..cc7ef3037 100644 --- a/fe-piattaforma/src/components/ReportFlow/reportFlowCard.tsx +++ b/fe-piattaforma/src/components/ReportFlow/reportFlowCard.tsx @@ -25,7 +25,7 @@ const ReportFlowCard: React.FC = (props) => { setCurrentStep(currentStep - 1); }; - const sections = '(NEWS, TOPIC, DOCUMENTI)'; + const sections = '(ANNUNCIO, TOPIC, DOCUMENTI)'; const possibleActions = (
diff --git a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/modals/manageNews.tsx b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/modals/manageNews.tsx index 749de0d03..f4b6688ff 100644 --- a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/modals/manageNews.tsx +++ b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/modals/manageNews.tsx @@ -64,7 +64,7 @@ const ManageNews: React.FC = ({ const stepsCTA = { form: { - title: `${creation ? 'Pubblica nuova' : 'Modifica'} news`, + title: `${creation ? 'Pubblica nuovo' : 'Modifica'} annuncio`, primaryCTA: { disabled: !isFormValid, label: creation ? 'Conferma' : 'Salva', @@ -81,7 +81,7 @@ const ManageNews: React.FC = ({ tertiaryCTA: null, }, preview: { - title: 'Anteprima news', + title: 'Anteprima annuncio', primaryCTA: { label: creation ? 'Conferma' : 'Salva', onClick: () => handleSaveNews(), @@ -281,8 +281,8 @@ const ManageNews: React.FC = ({ case 'confirm': content = ( ); diff --git a/fe-piattaforma/src/pages/common/Privacy/PrivacyDisclaimer.tsx b/fe-piattaforma/src/pages/common/Privacy/PrivacyDisclaimer.tsx index c94a5ee97..8765799bf 100644 --- a/fe-piattaforma/src/pages/common/Privacy/PrivacyDisclaimer.tsx +++ b/fe-piattaforma/src/pages/common/Privacy/PrivacyDisclaimer.tsx @@ -39,7 +39,7 @@ export const PrivacyDisclaimer = () => { Pietro di Brazzà 86, 00187 Roma (il “Dipartimento”), contattabile ai seguenti recapiti:

-
- {'La bacheca presenta ' + (newsList?.length || 0) + ' news'} + {'La bacheca presenta ' + (newsList?.length || 0) + ' annunci'} {newsList?.length ? ( @@ -111,7 +111,7 @@ const BachecaDigitaleWidget = () => { {device.mediaIsPhone && ( )} diff --git a/fe-piattaforma/src/pages/forms/formForum/formPublishNews.tsx b/fe-piattaforma/src/pages/forms/formForum/formPublishNews.tsx index 4815bf658..dc05370ae 100644 --- a/fe-piattaforma/src/pages/forms/formForum/formPublishNews.tsx +++ b/fe-piattaforma/src/pages/forms/formForum/formPublishNews.tsx @@ -556,7 +556,7 @@ const FormPublishNews: React.FC = (props) => { setHighlighted((prev) => !prev)} - label='News in evidenza' + label='Annunci in evidenza' />