From 8b3ba10707b8ce29be2592ed2463777b0ff2c322 Mon Sep 17 00:00:00 2001 From: Arturo Buono Date: Mon, 20 Nov 2023 12:55:29 +0100 Subject: [PATCH] feat(fe-piattaforma): updates 20231120 fix-endpoint --- fe-piattaforma/mock/cittadinoDetail.json | 6 +- .../Entities/Citizens/citizens.tsx | 2 +- .../src/pages/forms/formCitizen.tsx | 1 + .../formServices/formServiceCitizenFull.tsx | 2 +- .../services/servicesThunk.ts | 110 +++--------------- .../citizensArea/citizensAreaThunk.ts | 85 ++------------ 6 files changed, 28 insertions(+), 178 deletions(-) diff --git a/fe-piattaforma/mock/cittadinoDetail.json b/fe-piattaforma/mock/cittadinoDetail.json index 9c681b6ba..37e110792 100644 --- a/fe-piattaforma/mock/cittadinoDetail.json +++ b/fe-piattaforma/mock/cittadinoDetail.json @@ -27,21 +27,21 @@ "idServizio": 0, "nomeCompletoFacilitatore": "nome facilitatore", "nomeServizio": "Servizio 1", - "statoQuestionario": "ATTIVO" + "statoQuestionario": "COMPILATO" }, { "idQuestionarioCompilato": "questionario2", "idServizio": 1, "nomeCompletoFacilitatore": "nome facilitatore", "nomeServizio": "Servizio 2", - "statoQuestionario": "ATTIVO" + "statoQuestionario": "COMPILATO" }, { "idQuestionarioCompilato": "questionario2", "idServizio": 2, "nomeCompletoFacilitatore": "nome facilitatore", "nomeServizio": "Servizio 3", - "statoQuestionario": "ATTIVO" + "statoQuestionario": "COMPILATO" } ] } diff --git a/fe-piattaforma/src/pages/administrator/CitizensArea/Entities/Citizens/citizens.tsx b/fe-piattaforma/src/pages/administrator/CitizensArea/Entities/Citizens/citizens.tsx index a19c52028..a059e56d1 100644 --- a/fe-piattaforma/src/pages/administrator/CitizensArea/Entities/Citizens/citizens.tsx +++ b/fe-piattaforma/src/pages/administrator/CitizensArea/Entities/Citizens/citizens.tsx @@ -140,7 +140,7 @@ const Citizens = () => { name: td.cognome + ' ' + td.nome, numeroServizi: td.numeroServizi, numeroQuestionariCompilati: td.numeroQuestionariCompilati, - dataOraAggiornamento: moment(td.dataOraAggiornamento).format('YYYY-MM-DD HH:mm:ss') + dataOraAggiornamento: moment(td.dataOraAggiornamento).format('GG-MM-YYYY') })) ); return table; diff --git a/fe-piattaforma/src/pages/forms/formCitizen.tsx b/fe-piattaforma/src/pages/forms/formCitizen.tsx index ff4eca101..052f74791 100644 --- a/fe-piattaforma/src/pages/forms/formCitizen.tsx +++ b/fe-piattaforma/src/pages/forms/formCitizen.tsx @@ -159,6 +159,7 @@ const FormCitizen: React.FC = (props) => { col='col-12 col-lg-6' options={citizenFormDropdownOptions['genere']} isDisabled={formDisabled} + value={form?.[2].value ? form?.[5].value : 'Preferisco non rispondere'} wrapperClassName='mb-5 pr-lg-3' />