From 4ba01fc05afb25bdf9ad0bd708716f0d0a1215e3 Mon Sep 17 00:00:00 2001 From: Negar Abbasi Date: Wed, 11 Sep 2024 15:08:54 +1000 Subject: [PATCH] chore: renaming for consistency --- .../components/decoded-abi-method-arguments.tsx | 8 +++----- .../components/decoded-abi-method-return-value.tsx | 8 ++++---- .../abi-methods/components/decoded-abi-method.tsx | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/features/abi-methods/components/decoded-abi-method-arguments.tsx b/src/features/abi-methods/components/decoded-abi-method-arguments.tsx index e388828c..ad0a828f 100644 --- a/src/features/abi-methods/components/decoded-abi-method-arguments.tsx +++ b/src/features/abi-methods/components/decoded-abi-method-arguments.tsx @@ -6,13 +6,11 @@ import { ApplicationLink } from '@/features/applications/components/application- import { AssetIdLink } from '@/features/assets/components/asset-link' import { useMemo, useCallback } from 'react' -export function DecodedAbiMethodArguments({ - arguments: argumentsProp, - multiLine, -}: { +type Props = { arguments: AbiMethodArgumentRepresentation[] multiLine: boolean -}) { +} +export function DecodedAbiMethodArguments({ arguments: argumentsProp, multiLine }: Props) { const renderArgumentValue = useCallback((argument: AbiMethodArgumentRepresentation) => { if (argument.type === AbiType.Transaction) { return ( diff --git a/src/features/abi-methods/components/decoded-abi-method-return-value.tsx b/src/features/abi-methods/components/decoded-abi-method-return-value.tsx index 297c5e9d..3e374141 100644 --- a/src/features/abi-methods/components/decoded-abi-method-return-value.tsx +++ b/src/features/abi-methods/components/decoded-abi-method-return-value.tsx @@ -2,10 +2,10 @@ import { AbiMethodReturnRepresentation } from '@/features/abi-methods/models' import { AbiValue } from '@/features/abi-methods/components/abi-value' type Props = { - returnRepresentation: AbiMethodReturnRepresentation + return: AbiMethodReturnRepresentation } -export function DecodedAbiMethodReturnValue({ returnRepresentation }: Props) { - if (returnRepresentation === 'void') return 'void' - return +export function DecodedAbiMethodReturnValue({ return: returnProp }: Props) { + if (returnProp === 'void') return 'void' + return } diff --git a/src/features/abi-methods/components/decoded-abi-method.tsx b/src/features/abi-methods/components/decoded-abi-method.tsx index 93c52c54..f5ee09ad 100644 --- a/src/features/abi-methods/components/decoded-abi-method.tsx +++ b/src/features/abi-methods/components/decoded-abi-method.tsx @@ -18,7 +18,7 @@ export function DecodedAbiMethod({ abiMethod }: Props) {
Returns: - +
)