- removed adding FAQ items by users for sviluppumbria;
This commit is contained in:
@@ -22,6 +22,8 @@ import { Messages } from 'primereact/messages';
|
|||||||
import set404FromErrorResponse from '../../helpers/set404FromErrorResponse';
|
import set404FromErrorResponse from '../../helpers/set404FromErrorResponse';
|
||||||
import renderHtmlContent from '../../helpers/renderHtmlContent';
|
import renderHtmlContent from '../../helpers/renderHtmlContent';
|
||||||
|
|
||||||
|
const REACT_APP_HUB_ID = process.env.REACT_APP_HUB_ID;
|
||||||
|
|
||||||
const BandoView = () => {
|
const BandoView = () => {
|
||||||
const isAsyncRequest = useStore().main.isAsyncRequest();
|
const isAsyncRequest = useStore().main.isAsyncRequest();
|
||||||
const { id } = useParams();
|
const { id } = useParams();
|
||||||
@@ -199,7 +201,9 @@ const BandoView = () => {
|
|||||||
</Accordion>
|
</Accordion>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="appPageSection">
|
{REACT_APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
|
||||||
|
? null
|
||||||
|
: <div className="appPageSection">
|
||||||
<h2>{__('Non hai trovato la risposta che cercavi?', 'gepafin')}</h2>
|
<h2>{__('Non hai trovato la risposta che cercavi?', 'gepafin')}</h2>
|
||||||
<div className="appForm__field">
|
<div className="appForm__field">
|
||||||
<label htmlFor="newQuestion">{__('Fai una domanda', 'gepafin')}</label>
|
<label htmlFor="newQuestion">{__('Fai una domanda', 'gepafin')}</label>
|
||||||
@@ -215,7 +219,7 @@ const BandoView = () => {
|
|||||||
{__('Riceverai una notifica quando ti risponderemo', 'gepafin')}
|
{__('Riceverai una notifica quando ti risponderemo', 'gepafin')}
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>}
|
||||||
|
|
||||||
<div className="appPageSection">
|
<div className="appPageSection">
|
||||||
<h2>{__('Download Documenti', 'gepafin')}</h2>
|
<h2>{__('Download Documenti', 'gepafin')}</h2>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react';
|
|||||||
import { __ } from '@wordpress/i18n';
|
import { __ } from '@wordpress/i18n';
|
||||||
import { useNavigate, useParams } from 'react-router-dom';
|
import { useNavigate, useParams } from 'react-router-dom';
|
||||||
import { is, isEmpty, isNil } from 'ramda';
|
import { is, isEmpty, isNil } from 'ramda';
|
||||||
import "quill/dist/quill.core.css";
|
import 'quill/dist/quill.core.css';
|
||||||
|
|
||||||
// store
|
// store
|
||||||
import { storeGet, storeSet, useStore } from '../../store';
|
import { storeGet, storeSet, useStore } from '../../store';
|
||||||
@@ -451,7 +451,9 @@ const BandoViewBeneficiario = () => {
|
|||||||
</Accordion>
|
</Accordion>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="appPageSection">
|
{REACT_APP_HUB_ID === 't7jh5wfg9QXylNaTZkPoE'
|
||||||
|
? null
|
||||||
|
: <div className="appPageSection">
|
||||||
<h2>{__('Non hai trovato la risposta che cercavi?', 'gepafin')}</h2>
|
<h2>{__('Non hai trovato la risposta che cercavi?', 'gepafin')}</h2>
|
||||||
<div className="appForm__field">
|
<div className="appForm__field">
|
||||||
<label htmlFor="newQuestion">{__('Fai una domanda', 'gepafin')}</label>
|
<label htmlFor="newQuestion">{__('Fai una domanda', 'gepafin')}</label>
|
||||||
@@ -472,7 +474,7 @@ const BandoViewBeneficiario = () => {
|
|||||||
type="button"
|
type="button"
|
||||||
onClick={submitNewQuestion}
|
onClick={submitNewQuestion}
|
||||||
label={__('Salva', 'gepafin')}/>
|
label={__('Salva', 'gepafin')}/>
|
||||||
</div>
|
</div>}
|
||||||
|
|
||||||
{!chosenCompanyId || chosenCompanyId === 0
|
{!chosenCompanyId || chosenCompanyId === 0
|
||||||
? <>
|
? <>
|
||||||
|
|||||||
Reference in New Issue
Block a user