diff --git a/src/layouts/DefaultLayout/index.js b/src/layouts/DefaultLayout/index.js index ac5d1bd..5ed62d4 100644 --- a/src/layouts/DefaultLayout/index.js +++ b/src/layouts/DefaultLayout/index.js @@ -8,13 +8,10 @@ import { useStoreValue, storeSet } from '../../store'; // components import AppSidebar from './components/AppSidebar'; import AppTopbar from './components/AppTopbar'; -import { pathOr } from 'ramda'; const DefaultLayout = ({ children }) => { const isError404 = useStoreValue('isError404'); const location = useLocation(); - const userData = useStoreValue('userData'); - const role = pathOr('', ['role', 'roleType'], userData); useEffect(() => { storeSet('isError404', false); diff --git a/src/pages/BandoViewBeneficiario/index.js b/src/pages/BandoViewBeneficiario/index.js index 4e0d95f..c0f1766 100644 --- a/src/pages/BandoViewBeneficiario/index.js +++ b/src/pages/BandoViewBeneficiario/index.js @@ -46,6 +46,7 @@ const BandoViewBeneficiario = () => { const [isVisibleConfidiPopup, setIsVisibleConfidiPopup] = useState(false); const bandoMsgs = useRef(null); const toast = useRef(null); + const [visible, setVisible] = useState(false); const displayConfidiPopup = () => { setIsVisibleConfidiPopup(true); @@ -340,6 +341,9 @@ const BandoViewBeneficiario = () => { } useEffect(() => { + if (parseInt(id) === 21) { + setVisible(true); + } if (!isEmpty(chosenCompanyId) && chosenCompanyId !== 0) { const bandoId = getBandoId(); storeSet('setAsyncRequest'); @@ -594,6 +598,12 @@ const BandoViewBeneficiario = () => {

{__('Telefono', 'gepafin')}: +39 {data.phoneNumber}

: null} + + {if (!visible) return; setVisible(false); }}> +

+ Per esaurimento delle risorse disponibili, ai sensi dell'art. 9 dell'avviso pubblico Fiere 2025, come da determinazione della REGIONE UMBRIA con D.D. N. 9277 DEL 05/09/2025 รจ stata disposta la chiusura anticipata al 12/09/2025 - ore 12.00 per la compilazione ed invio della domanda di ammissione alle agevolazioni a valere sull'avviso pubblico Fiere 2025 +

+
: <>