refactor: set a generic placeholder on float input (#3015)

* fix: set a generic placeholder on the float input

* [autofix.ci] apply automated fixes

* refactor: remove unnecessary validation

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
This commit is contained in:
Igor Carvalho 2024-07-29 19:26:23 -03:00 committed by GitHub
commit 0fcba55f51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,11 +40,7 @@ export default function FloatComponent({
value={value ?? ""}
disabled={disabled}
className={editNode ? "input-edit-node" : ""}
placeholder={
editNode
? `Enter a value between ${min} and ${max}`
: `Enter a value between ${min} and ${max}`
}
placeholder={`Enter a value`}
onChange={(event) => {
onChange(event.target.value);
}}