diff --git a/packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/TransactionActions.tsx b/packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/TransactionActions.tsx index 9690ccaf5..a6fd6fe03 100644 --- a/packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/TransactionActions.tsx +++ b/packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/TransactionActions.tsx @@ -34,6 +34,7 @@ export const TransactionActions: FC = ({ {transaction.calldata?.map((calldata, cdIndex) => ( diff --git a/packages/ui/src/components/DetailAccordion.tsx b/packages/ui/src/components/DetailAccordion.tsx index 3a5d14ed8..54b068b74 100644 --- a/packages/ui/src/components/DetailAccordion.tsx +++ b/packages/ui/src/components/DetailAccordion.tsx @@ -107,8 +107,9 @@ export const DetailAccordionButton: FC< AccordionButtonProps & { label?: ReactNode value?: ReactNode + copyValue?: string } -> = ({ label, value, children, ...rest }) => { +> = ({ label, value, copyValue, children, ...rest }) => { const { isDisabled } = useAccordionItemState() return ( {label && {label}} - {value && ( - - {value} - + {value && copyValue ? ( + + + {value} + + + ) : ( + value && ( + + {value} + + ) )} {children}