mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-26 21:04:44 +00:00
feat(web/input): allow defining icon for number row field
This commit is contained in:
1 parent
473a0f480d
commit
b638e435ea
4 files changed
+9
-2
No files matched your search
@@ -22,7 +22,7 @@ const InputField: React.FC<Props> = (props) => {
|
||||
<Text>{props.row.label}</Text>
|
||||
<InputGroup>
|
||||
{props.row.icon && (
|
||||
<InputLeftElement pointerEvents="none" children={<FontAwesomeIcon icon={props.row.icon} />} />
|
||||
<InputLeftElement pointerEvents="none" children={<FontAwesomeIcon icon={props.row.icon} fixedWidth />} />
|
||||
)}
|
||||
<Input
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => props.handleChange(e.target.value, props.index)}
|
||||
|
||||
Reference in new issue
Block a user