File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
apps/dashboard/src/components/contract-components/contract-publish-form Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ export const ContractParamsFieldset: React.FC<ContractParamsFieldsetProps> = ({
200200 param . type === "bytes" ||
201201 param . type === "bytes[]" ) && (
202202 < div className = "flex items-center gap-3 text-sm" >
203- Advanced Input
203+ Dynamic Input
204204 < Switch
205205 checked = { isCustomInputEnabledArray [ idx ] }
206206 onCheckedChange = { ( v ) =>
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const DecodedInput: React.FC<DecodedInputProps> = ({
4747 }
4848 } ;
4949
50- const showAdvancedInputToggle =
50+ const showDynamicInputToggle =
5151 selectedType === "address" || selectedType === "address[]" ;
5252
5353 return (
@@ -78,10 +78,11 @@ export const DecodedInput: React.FC<DecodedInputProps> = ({
7878 < SelectValue placeholder = "Select type" />
7979 </ SelectTrigger >
8080 < SelectContent >
81- < SelectItem value = "uint256" > uint256 </ SelectItem >
8281 < SelectItem value = "address" > address</ SelectItem >
83- < SelectItem value = "bytes32" > bytes32</ SelectItem >
8482 < SelectItem value = "bool" > bool</ SelectItem >
83+ < SelectItem value = "bytes32" > bytes32</ SelectItem >
84+ < SelectItem value = "string" > string</ SelectItem >
85+ < SelectItem value = "uint256" > uint256 </ SelectItem >
8586 </ SelectContent >
8687 </ Select >
8788 </ FormFieldSetup >
@@ -91,9 +92,9 @@ export const DecodedInput: React.FC<DecodedInputProps> = ({
9192 { /* Value */ }
9293 < div className = "flex justify-between gap-4" >
9394 < h5 > Parameter Value</ h5 >
94- { showAdvancedInputToggle && (
95+ { showDynamicInputToggle && (
9596 < div className = "flex items-center gap-3 text-sm" >
96- Advanced Input
97+ Dynamic Input
9798 < Switch
9899 checked = { isCustomAddress }
99100 onCheckedChange = { ( v ) => handleToggleCustomInput ( ! ! v ) }
You can’t perform that action at this time.
0 commit comments