From 4af5aa56c279fcd5fdd2380f2676ea07556d0795 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 26 Jan 2024 14:23:39 -0300 Subject: [PATCH] chore(IOInputField): rename onChange prop to updateValue for better semantics chore(IOInputField): remove styleClasses and placeholder props as they are not used chore(IOView): remove TODO comment for extending and improving view mode and adding other types of views chore(IOView): remove unused onChange prop from IOInputProps type --- .../src/components/IOInputField/index.tsx | 25 ++++++++--------- src/frontend/src/components/IOview/index.tsx | 28 ++++++++++--------- src/frontend/src/types/components/index.ts | 8 ++---- 3 files changed, 29 insertions(+), 32 deletions(-) diff --git a/src/frontend/src/components/IOInputField/index.tsx b/src/frontend/src/components/IOInputField/index.tsx index 68d442648..feec2ce3b 100644 --- a/src/frontend/src/components/IOInputField/index.tsx +++ b/src/frontend/src/components/IOInputField/index.tsx @@ -1,23 +1,20 @@ -import { Textarea } from "../ui/textarea"; -import InputFileComponent from "../inputFileComponent"; import { IOInputProps } from "../../types/components"; +import { Textarea } from "../ui/textarea"; export default function IOInputField({ inputType, value, - onChange, - styleClasses, - placeholder, + updateValue, }: IOInputProps): JSX.Element | undefined { - switch (inputType) { + switch (inputType) { case "TextInput": - return ( -