- merged with master;
This commit is contained in:
@@ -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 { storeSet, useStore } from '../../store';
|
import { storeSet, useStore } from '../../store';
|
||||||
@@ -182,8 +182,8 @@ const BandoView = () => {
|
|||||||
{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>
|
||||||
@@ -194,32 +194,32 @@ const BandoView = () => {
|
|||||||
{data.faq
|
{data.faq
|
||||||
.filter(o => o.isVisible)
|
.filter(o => o.isVisible)
|
||||||
.map((o, i) => <AccordionTab key={i} header={renderHtmlContent(o.value)}>
|
.map((o, i) => <AccordionTab key={i} header={renderHtmlContent(o.value)}>
|
||||||
<div className="ql-editor">
|
<div className="ql-editor">
|
||||||
{renderHtmlContent(o.response)}
|
{renderHtmlContent(o.response)}
|
||||||
</div>
|
</div>
|
||||||
</AccordionTab>)}
|
</AccordionTab>)}
|
||||||
</Accordion>
|
</Accordion>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{REACT_APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
|
{REACT_APP_HUB_ID === 't7jh5wfg9QXylNaTZkPoE'
|
||||||
? null
|
? null
|
||||||
: <div className="appPageSection">
|
: <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>
|
||||||
<InputTextarea
|
<InputTextarea
|
||||||
id="newQuestion"
|
id="newQuestion"
|
||||||
disabled
|
disabled
|
||||||
rows={7}
|
rows={7}
|
||||||
value={newQuestion}
|
value={newQuestion}
|
||||||
placeholder={__('Digita qui la tua domanda', 'gepafin')}
|
placeholder={__('Digita qui la tua domanda', 'gepafin')}
|
||||||
onChange={(e) => setNewQuestion(e.target.value)}
|
onChange={(e) => setNewQuestion(e.target.value)}
|
||||||
aria-describedby="newQuestion-help"/>
|
aria-describedby="newQuestion-help"/>
|
||||||
<small id="newQuestion-help">
|
<small id="newQuestion-help">
|
||||||
{__('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>
|
||||||
@@ -228,20 +228,23 @@ const BandoView = () => {
|
|||||||
type="button"
|
type="button"
|
||||||
disabled={true}
|
disabled={true}
|
||||||
outlined
|
outlined
|
||||||
onClick={() => {}}
|
onClick={() => {
|
||||||
|
}}
|
||||||
label={__('Scarica Bando Completo', 'gepafin')}
|
label={__('Scarica Bando Completo', 'gepafin')}
|
||||||
icon="pi pi-download" iconPos="right"/>
|
icon="pi pi-download" iconPos="right"/>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={true}
|
disabled={true}
|
||||||
outlined
|
outlined
|
||||||
onClick={() => {}}
|
onClick={() => {
|
||||||
|
}}
|
||||||
label={__('Scarica Modulistica', 'gepafin')}
|
label={__('Scarica Modulistica', 'gepafin')}
|
||||||
icon="pi pi-download" iconPos="right"/>
|
icon="pi pi-download" iconPos="right"/>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={true}
|
disabled={true}
|
||||||
onClick={() => {}}
|
onClick={() => {
|
||||||
|
}}
|
||||||
label={__('Presenta Domanda', 'gepafin')}
|
label={__('Presenta Domanda', 'gepafin')}
|
||||||
icon="pi pi-save" iconPos="right"/>
|
icon="pi pi-save" iconPos="right"/>
|
||||||
{/*<Button
|
{/*<Button
|
||||||
@@ -259,7 +262,8 @@ const BandoView = () => {
|
|||||||
<h2>{__('Contatti per Assistenza', 'gepafin')}</h2>
|
<h2>{__('Contatti per Assistenza', 'gepafin')}</h2>
|
||||||
<div className="row rowContent">
|
<div className="row rowContent">
|
||||||
<p>Email: {data.email}</p>
|
<p>Email: {data.email}</p>
|
||||||
{!isNil(data.phoneNumber) ? <p>{__('Telefono', 'gepafin')}: +39 {data.phoneNumber}</p> : null}
|
{!isNil(data.phoneNumber) ?
|
||||||
|
<p>{__('Telefono', 'gepafin')}: +39 {data.phoneNumber}</p> : null}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user