From 5f60021fa904ffc5d8aadc5ca64653340204c8e3 Mon Sep 17 00:00:00 2001 From: Rahul Yadav Date: Sat, 10 Aug 2024 11:17:54 +0530 Subject: [PATCH] fix: remove redundant textbox for receiver parameter type `text` (#77) --- src/components/workspace/ABIUi/TactABIUi.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/workspace/ABIUi/TactABIUi.tsx b/src/components/workspace/ABIUi/TactABIUi.tsx index d7f19c7..9234488 100644 --- a/src/components/workspace/ABIUi/TactABIUi.tsx +++ b/src/components/workspace/ABIUi/TactABIUi.tsx @@ -70,7 +70,8 @@ function getValidtionRule(field: TactABIField) { function FieldItem( fieldType: string, files: Tree[], - placeholder?: string, + placeholder: string, + defaultValue?: string | number | undefined, ): JSX.Element { const renderFilesForCell = () => { return files @@ -102,7 +103,12 @@ function FieldItem( ); default: - return ; + return ( + + ); } } @@ -281,6 +287,7 @@ export default cell;`} fieldKind === 'simple' ? field.type.type : 'unknown', files, inputFieldType, + field.type.defaultValue, )}