feat(web/input): allow defining icon for number row field

This commit is contained in:
Luke
2022-09-08 12:00:41 +02:00
parent 473a0f480d
commit b638e435ea
4 changed files with 9 additions and 2 deletions

View File

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