- updated call form - added new fields;

This commit is contained in:
Vitalii Kiiko
2024-10-01 10:35:21 +02:00
parent 4ba883c073
commit 111b1b5620
5 changed files with 136 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import { classNames } from 'primereact/utils';
import { Controller } from 'react-hook-form';
import { isNil } from 'ramda';
import { Calendar } from 'primereact/calendar';
const Datepicker = ({
@@ -14,7 +14,8 @@ const Datepicker = ({
infoText = null,
minDate = null,
maxDate = null,
disabled = false
disabled = false,
timeOnly = false
}) => {
return (
<>
@@ -32,7 +33,8 @@ const Datepicker = ({
value={field.value ?? []}
onChange={(e) => field.onChange(e.value)}
dateFormat="dd/mm/yy"
mask="99/99/9999"
hourFormat="24"
timeOnly={timeOnly}
showIcon
minDate={minDate}
maxDate={maxDate}