- updated call form - added new fields;
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user