diff --git a/src/pages/BandoView/index.js b/src/pages/BandoView/index.js index 116c033..b82215b 100644 --- a/src/pages/BandoView/index.js +++ b/src/pages/BandoView/index.js @@ -22,6 +22,8 @@ import { Messages } from 'primereact/messages'; import set404FromErrorResponse from '../../helpers/set404FromErrorResponse'; import renderHtmlContent from '../../helpers/renderHtmlContent'; +const REACT_APP_HUB_ID = process.env.REACT_APP_HUB_ID; + const BandoView = () => { const isAsyncRequest = useStore().main.isAsyncRequest(); const { id } = useParams(); @@ -199,7 +201,9 @@ const BandoView = () => { -
+ {REACT_APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE' + ? null + :

{__('Non hai trovato la risposta che cercavi?', 'gepafin')}

@@ -215,7 +219,7 @@ const BandoView = () => { {__('Riceverai una notifica quando ti risponderemo', 'gepafin')}
-
+
}

{__('Download Documenti', 'gepafin')}

diff --git a/src/pages/BandoViewBeneficiario/index.js b/src/pages/BandoViewBeneficiario/index.js index 1540284..c72ac95 100644 --- a/src/pages/BandoViewBeneficiario/index.js +++ b/src/pages/BandoViewBeneficiario/index.js @@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react'; import { __ } from '@wordpress/i18n'; import { useNavigate, useParams } from 'react-router-dom'; import { is, isEmpty, isNil } from 'ramda'; -import "quill/dist/quill.core.css"; +import 'quill/dist/quill.core.css'; // store import { storeGet, storeSet, useStore } from '../../store'; @@ -432,8 +432,8 @@ const BandoViewBeneficiario = () => { {data.docs .filter(o => o.source === 'CALL' && o.type === 'DOCUMENT') .map((o, i) =>
  • - {o.name} -
  • )} + {o.name} + )}
    @@ -451,28 +451,30 @@ const BandoViewBeneficiario = () => { -
    -

    {__('Non hai trovato la risposta che cercavi?', 'gepafin')}

    -
    - - setNewQuestion(e.htmlValue)} - style={{ height: 80 * 3 }} - aria-describedby="newQuestion-help" - /> - - {__('Riceverai una notifica quando ti risponderemo', 'gepafin')} - -
    -
    + {REACT_APP_HUB_ID === 't7jh5wfg9QXylNaTZkPoE' + ? null + :
    +

    {__('Non hai trovato la risposta che cercavi?', 'gepafin')}

    +
    + + setNewQuestion(e.htmlValue)} + style={{ height: 80 * 3 }} + aria-describedby="newQuestion-help" + /> + + {__('Riceverai una notifica quando ti risponderemo', 'gepafin')} + +
    +
    } {!chosenCompanyId || chosenCompanyId === 0 ? <>