Skip to content

Commit

Permalink
fix: remove redundant textbox for receiver parameter type text (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulyadav-57 authored Aug 10, 2024
1 parent ea26f50 commit 5f60021
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/workspace/ABIUi/TactABIUi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -102,7 +103,12 @@ function FieldItem(
</Select>
);
default:
return <Input placeholder={placeholder} />;
return (
<Input
placeholder={placeholder}
type={defaultValue ? 'hidden' : 'text'}
/>
);
}
}

Expand Down Expand Up @@ -281,6 +287,7 @@ export default cell;`}
fieldKind === 'simple' ? field.type.type : 'unknown',
files,
inputFieldType,
field.type.defaultValue,
)}
</Form.Item>
<Form.Item
Expand Down

0 comments on commit 5f60021

Please sign in to comment.