|
|
|
@ -73,10 +73,8 @@ export const DateField: FC<IProps> = ({
@@ -73,10 +73,8 @@ export const DateField: FC<IProps> = ({
|
|
|
|
|
placeholder={placeholder} |
|
|
|
|
suffixIcon={<img src={CalendarSVG} />} |
|
|
|
|
style={{ width: "100%" }} |
|
|
|
|
// onChange={(_, dateString) => onChange(dateString)}
|
|
|
|
|
onChange={(date) => { |
|
|
|
|
if (input?.onChange) input?.onChange(date); |
|
|
|
|
// else onChange(moment(date).format("DD-MM-YYYY"));
|
|
|
|
|
else onChange(date ? date.format() : null); |
|
|
|
|
}} |
|
|
|
|
format={input?.format ? input?.format : format} |
|
|
|
|