Skip to content

Commit

Permalink
copy(contractStateForm): add helper text for output param indexes (#1597
Browse files Browse the repository at this point in the history
)

* copy(contractStateForm): add helper text for output param indexes

* fix: change to FormHelperText

* fix(FormHelperText): add mb
  • Loading branch information
TomiOhl authored Jan 30, 2025
1 parent 8a4a060 commit 024c478
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/requirements/ContractState/ContractStateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ const ContractStateForm = ({ baseFieldPath }: RequirementFormProps) => {
>
<FormLabel>Expected output:</FormLabel>

<FormHelperText mb="2">
Output param indexes start from 0, i.e. the first output param index is 0
</FormHelperText>

{shouldRenderSimpleInputs ? (
<Controller
name={`${baseFieldPath}.data.resultIndex`}
Expand Down

0 comments on commit 024c478

Please sign in to comment.