From 0fcba55f51fd852e1441e49ba1cb8df9c08d9eee Mon Sep 17 00:00:00 2001 From: Igor Carvalho Date: Mon, 29 Jul 2024 19:26:23 -0300 Subject: [PATCH] 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 --- src/frontend/src/components/floatComponent/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/frontend/src/components/floatComponent/index.tsx b/src/frontend/src/components/floatComponent/index.tsx index 3470cc137..979f55aba 100644 --- a/src/frontend/src/components/floatComponent/index.tsx +++ b/src/frontend/src/components/floatComponent/index.tsx @@ -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); }}