refactor(web/input): improve typings

This commit is contained in:
Luke committed 2023-02-14 11:17:39 +01:00
1 parent 7bb2eb2ea7
commit 59a495a541
2 files changed
+21 -68

No files matched your search

@@ -29,9 +29,9 @@ const DateField: React.FC<Props> = (props) => {
onChange={(date) => controller.field.onChange(date ? date.getTime() : null)}
label={props.row.label}
description={props.row.description}
placeholder={props.row.placeholder}
placeholder={props.row.format}
disabled={props.row.disabled}
inputFormat="DD/MM/YYYY"
inputFormat={props.row.format}
withAsterisk={props.row.required}
clearable={props.row.clearable}
icon={props.row.icon && <FontAwesomeIcon fixedWidth icon={props.row.icon} />}
@@ -56,9 +56,9 @@ const DateField: React.FC<Props> = (props) => {
}
label={props.row.label}
description={props.row.description}
placeholder={props.row.placeholder}
placeholder={props.row.format}
disabled={props.row.disabled}
inputFormat="DD/MM/YYYY"
inputFormat={props.row.format}
withAsterisk={props.row.required}
clearable={props.row.clearable}
icon={props.row.icon && <FontAwesomeIcon fixedWidth icon={props.row.icon} />}