{buttons.map(
- ({ size, icon, label, onClick, disabled, primary, hide }) =>
+ ({ size, icon, label, onClick, disabled, primary, hide }, index) =>
!hide && (
{
onClick={onClick}
icon={icon}
disabled={disabled}
+ data-testid={`wallet-action-button-${index}`}
/>
{capitalize(label)}
diff --git a/src/pages/wallet/WalletMain.tsx b/src/pages/wallet/WalletMain.tsx
index 95dc82e8d..92aeb6518 100644
--- a/src/pages/wallet/WalletMain.tsx
+++ b/src/pages/wallet/WalletMain.tsx
@@ -21,11 +21,11 @@ const WalletMain = () => {
return (
<>
-
+
-
+
{
@@ -37,23 +37,39 @@ const WalletMain = () => {
}}
tabs={[
t("Assets"),
-
+
{t("Activity")}
{!!totalSuccess && (
-
+
)}
{!!totalPending && (
-
+
)}
{!!totalFailed && (
-
+
)}
,
]}
/>
-
- {tab === 0 ?
:
}
+
+ {tab === 0 ? (
+
+ ) : (
+
+ )}
diff --git a/src/txs/AddressBook/AddressWalletList.tsx b/src/txs/AddressBook/AddressWalletList.tsx
index d013f387f..13c36fed4 100644
--- a/src/txs/AddressBook/AddressWalletList.tsx
+++ b/src/txs/AddressBook/AddressWalletList.tsx
@@ -16,10 +16,16 @@ const AddressWalletList = ({
}) => {
if (!items.length) return null
return (
-
- {title && }
+
+ {title && (
+
+ )}
- {items.map((item) => (
+ {items.map((item, index) => (
onClick?.(item) : undefined}
label={item.name}
subLabel={truncate(item.recipient, [11, 6])}
+ data-testid={`wallet-item-${index}`}
/>
))}
diff --git a/src/txs/feeAbstraction/DisplayFees.tsx b/src/txs/feeAbstraction/DisplayFees.tsx
index 8efd74086..dc620b670 100644
--- a/src/txs/feeAbstraction/DisplayFees.tsx
+++ b/src/txs/feeAbstraction/DisplayFees.tsx
@@ -29,7 +29,7 @@ export default function DisplayFees({
chainID: string
gas: number | undefined
gasDenom: string | undefined
- setGasDenom: (gasDenom: string) => void
+ setGasDenom?: (gasDenom: string) => void
descriptions?: { label: ReactNode; value: ReactNode }[]
onReady: (state: boolean) => void
}) {
@@ -58,7 +58,7 @@ export default function DisplayFees({
availableGasDenoms.length &&
!availableGasDenoms.includes(gasDenom ?? "")
) {
- setGasDenom(availableGasDenoms[0])
+ setGasDenom && setGasDenom(availableGasDenoms[0])
}
}, [availableGasDenoms]) // eslint-disable-line
@@ -126,7 +126,7 @@ export default function DisplayFees({
label: (
{t("Fee")}{" "}
- {availableGasDenoms.length > 1 && (
+ {availableGasDenoms.length > 1 && setGasDenom && (