-
{
diff --git a/src/frontend/src/components/intComponent/index.tsx b/src/frontend/src/components/intComponent/index.tsx
index 24d28e4f5..8a4da22b6 100644
--- a/src/frontend/src/components/intComponent/index.tsx
+++ b/src/frontend/src/components/intComponent/index.tsx
@@ -1,5 +1,6 @@
import { useEffect } from "react";
import { FloatComponentType } from "../../types/components";
+import { Input } from "../ui/input";
export default function IntComponent({
value,
@@ -17,13 +18,9 @@ export default function IntComponent({
}, [disabled, onChange]);
return (
-
-
{
if (
event.key !== "Backspace" &&
@@ -52,11 +49,11 @@ export default function IntComponent({
}}
value={value ?? ""}
className={
- "nopan nodrag noundo nocopy " +
- (editNode
- ? " input-edit-node "
- : " input-primary " + (disabled ? " input-disable" : ""))
+ editNode
+ ? "input-edit-node"
+ : ""
}
+ disabled={disabled}
placeholder={editNode ? "Integer number" : "Type an integer number"}
onChange={(e) => {
onChange(e.target.value);
diff --git a/src/frontend/src/components/textAreaComponent/index.tsx b/src/frontend/src/components/textAreaComponent/index.tsx
index 2bead9a2d..e3cbb672f 100644
--- a/src/frontend/src/components/textAreaComponent/index.tsx
+++ b/src/frontend/src/components/textAreaComponent/index.tsx
@@ -3,6 +3,7 @@ import { TypeModal } from "../../constants/enums";
import GenericModal from "../../modals/genericModal";
import { TextAreaComponentType } from "../../types/components";
import IconComponent from "../genericIconComponent";
+import { Input } from "../ui/input";
export default function TextAreaComponent({
value,
@@ -18,15 +19,14 @@ export default function TextAreaComponent({
}, [disabled]);
return (
-
-
);
}
diff --git a/src/frontend/src/components/ui/input.tsx b/src/frontend/src/components/ui/input.tsx
index 0942a3930..33b7f8813 100644
--- a/src/frontend/src/components/ui/input.tsx
+++ b/src/frontend/src/components/ui/input.tsx
@@ -10,7 +10,7 @@ const Input = React.forwardRef
(
-