Merge branch 'master' into develop
This commit is contained in:
@@ -22,7 +22,7 @@ import CompanyService from '../../service/company-service';
|
||||
import { isPIVA, isEmail, isEmailPEC } from '../../helpers/validators';
|
||||
import set404FromErrorResponse from '../../helpers/set404FromErrorResponse';
|
||||
|
||||
const APP_EVALUATION_FLOW_ID = process.env.REACT_APP_EVALUATION_FLOW_ID;
|
||||
//const APP_EVALUATION_FLOW_ID = process.env.REACT_APP_EVALUATION_FLOW_ID;
|
||||
|
||||
const AddCompany = () => {
|
||||
const navigate = useNavigate();
|
||||
@@ -140,10 +140,10 @@ const AddCompany = () => {
|
||||
storeSet.main.unsetAsyncRequest();
|
||||
}
|
||||
|
||||
const shouldDisableFiscalCode = () => {
|
||||
/*const shouldDisableFiscalCode = () => {
|
||||
const formData = getValues();
|
||||
return !formData.type || formData.type && formData.type === 'giuridica';
|
||||
}
|
||||
}*/
|
||||
|
||||
useEffect(() => {
|
||||
setInputPiva(isPiva);
|
||||
@@ -152,7 +152,7 @@ const AddCompany = () => {
|
||||
useEffect(() => {
|
||||
checkVatNumber(debouncedPivaValue);
|
||||
}, [debouncedPivaValue])
|
||||
console.log('APP_EVALUATION_FLOW_ID', APP_EVALUATION_FLOW_ID)
|
||||
|
||||
return (
|
||||
<div className="appPage">
|
||||
<div className="appPage__pageHeader">
|
||||
@@ -183,7 +183,7 @@ console.log('APP_EVALUATION_FLOW_ID', APP_EVALUATION_FLOW_ID)
|
||||
/>
|
||||
</div>
|
||||
|
||||
{APP_EVALUATION_FLOW_ID === '2'
|
||||
{/*{APP_EVALUATION_FLOW_ID === '2'
|
||||
? <div className="appForm__cols">
|
||||
<FormField
|
||||
type="radio"
|
||||
@@ -198,7 +198,7 @@ console.log('APP_EVALUATION_FLOW_ID', APP_EVALUATION_FLOW_ID)
|
||||
{ name: 'fisica', label: 'Fisica' },
|
||||
]}
|
||||
/>
|
||||
</div> : null}
|
||||
</div> : null}*/}
|
||||
|
||||
<div className="appForm__cols">
|
||||
<FormField
|
||||
@@ -210,7 +210,16 @@ console.log('APP_EVALUATION_FLOW_ID', APP_EVALUATION_FLOW_ID)
|
||||
config={{ required: __('È obbligatorio', 'gepafin') }}
|
||||
/>
|
||||
|
||||
{APP_EVALUATION_FLOW_ID === '1'
|
||||
<FormField
|
||||
type="textinput"
|
||||
disabled
|
||||
fieldName="codiceFiscale"
|
||||
label={__('Codice fiscale', 'gepafin')}
|
||||
control={control}
|
||||
errors={errors}
|
||||
config={{ required: __('È obbligatorio', 'gepafin') }}
|
||||
/>
|
||||
{/*{APP_EVALUATION_FLOW_ID === '1'
|
||||
? <FormField
|
||||
type="textinput"
|
||||
disabled
|
||||
@@ -228,7 +237,7 @@ console.log('APP_EVALUATION_FLOW_ID', APP_EVALUATION_FLOW_ID)
|
||||
control={control}
|
||||
errors={errors}
|
||||
config={{ required: __('È obbligatorio', 'gepafin') }}
|
||||
/>}
|
||||
/>}*/}
|
||||
</div>
|
||||
|
||||
<div className="appForm__cols">
|
||||
|
||||
Reference in New Issue
Block a user