mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-22 10:58:36 +00:00
refactor(web/input): improve typings
This commit is contained in:
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} />}
|
||||
|
||||
Reference in new issue
Block a user