- 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';
|
||||||
@@ -432,8 +432,8 @@ const BandoViewBeneficiario = () => {
|
|||||||
{data.docs
|
{data.docs
|
||||||
.filter(o => o.source === 'CALL' && o.type === 'DOCUMENT')
|
.filter(o => o.source === 'CALL' && o.type === 'DOCUMENT')
|
||||||
.map((o, i) => <li key={i}>
|
.map((o, i) => <li key={i}>
|
||||||
<a href={o.filePath} target="_blank" rel="noreferrer">{o.name}</a>
|
<a href={o.filePath} target="_blank" rel="noreferrer">{o.name}</a>
|
||||||
</li>)}
|
</li>)}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -451,28 +451,30 @@ const BandoViewBeneficiario = () => {
|
|||||||
</Accordion>
|
</Accordion>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="appPageSection">
|
{REACT_APP_HUB_ID === 't7jh5wfg9QXylNaTZkPoE'
|
||||||
<h2>{__('Non hai trovato la risposta che cercavi?', 'gepafin')}</h2>
|
? null
|
||||||
<div className="appForm__field">
|
: <div className="appPageSection">
|
||||||
<label htmlFor="newQuestion">{__('Fai una domanda', 'gepafin')}</label>
|
<h2>{__('Non hai trovato la risposta che cercavi?', 'gepafin')}</h2>
|
||||||
<Editor
|
<div className="appForm__field">
|
||||||
id="newQuestion"
|
<label htmlFor="newQuestion">{__('Fai una domanda', 'gepafin')}</label>
|
||||||
value={newQuestion}
|
<Editor
|
||||||
placeholder={__('Digita qui la tua domanda', 'gepafin')}
|
id="newQuestion"
|
||||||
headerTemplate={header}
|
value={newQuestion}
|
||||||
onTextChange={(e) => setNewQuestion(e.htmlValue)}
|
placeholder={__('Digita qui la tua domanda', 'gepafin')}
|
||||||
style={{ height: 80 * 3 }}
|
headerTemplate={header}
|
||||||
aria-describedby="newQuestion-help"
|
onTextChange={(e) => setNewQuestion(e.htmlValue)}
|
||||||
/>
|
style={{ height: 80 * 3 }}
|
||||||
<small id="newQuestion-help">
|
aria-describedby="newQuestion-help"
|
||||||
{__('Riceverai una notifica quando ti risponderemo', 'gepafin')}
|
/>
|
||||||
</small>
|
<small id="newQuestion-help">
|
||||||
</div>
|
{__('Riceverai una notifica quando ti risponderemo', 'gepafin')}
|
||||||
<Button
|
</small>
|
||||||
type="button"
|
</div>
|
||||||
onClick={submitNewQuestion}
|
<Button
|
||||||
label={__('Salva', 'gepafin')}/>
|
type="button"
|
||||||
</div>
|
onClick={submitNewQuestion}
|
||||||
|
label={__('Salva', 'gepafin')}/>
|
||||||
|
</div>}
|
||||||
|
|
||||||
{!chosenCompanyId || chosenCompanyId === 0
|
{!chosenCompanyId || chosenCompanyId === 0
|
||||||
? <>
|
? <>
|
||||||
|
|||||||
Reference in New Issue
Block a user