34 lines
929 B
JavaScript
34 lines
929 B
JavaScript
import React, { useState, useEffect, useRef } from 'react';
|
|
import { __ } from '@wordpress/i18n';
|
|
import { useParams } from 'react-router-dom';
|
|
import { Skeleton } from 'primereact/skeleton';
|
|
import getBandoLabel from '../../helpers/getBandoLabel';
|
|
|
|
// components
|
|
|
|
const BandoEditForms = () => {
|
|
const { id } = useParams();
|
|
//const [data, setData] = useState({});
|
|
//const [isLoading, setIsLoading] = useState(true);
|
|
|
|
useEffect(() => {
|
|
const parsed = parseInt(id)
|
|
const bandoId = !isNaN(parsed) ? parsed : 0;
|
|
|
|
// TODO
|
|
}, [id]);
|
|
|
|
return (
|
|
<div className="appPage">
|
|
<div className="appPage__pageHeader">
|
|
<h1>{__('Crea o modifica form per il Bando', 'gepafin')}</h1>
|
|
<p>
|
|
{__('Scegli come vuoi procedere:', 'gepafin')}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
)
|
|
|
|
}
|
|
|
|
export default BandoEditForms; |