refactor(web/input): improve typings

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

View File

@@ -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} />}