Add proper label to method decoding inputs (#4136)
This commit is contained in:
committed by
Gav Wood
parent
a4b93b4b88
commit
8d3d76c107
@@ -377,11 +377,15 @@ class MethodDecoding extends Component {
|
||||
}
|
||||
|
||||
const inputs = methodInputs.map((input, index) => {
|
||||
const label = input.name
|
||||
? `${input.name}: ${input.type}`
|
||||
: input.type;
|
||||
|
||||
return (
|
||||
<TypedInput
|
||||
allowCopy
|
||||
className={ styles.input }
|
||||
label={ input.type }
|
||||
label={ label }
|
||||
key={ index }
|
||||
param={ input.type }
|
||||
readOnly
|
||||
|
||||
Reference in New Issue
Block a user