Skip to content

Commit

Permalink
Moved expand icon button for wallet transaction history
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaMineJP committed Dec 11, 2024
1 parent 5485335 commit 70baa48
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/wallets/src/components/WalletHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ async function handleRowClick(
}

const getCols = (type: WalletType, isSyncing, getOfferRecord, navigate, location) => [
{
width: '70px',
field: (row: Row, metadata, isExpanded, toggleExpand) => (
<IconButton aria-label="expand row" size="small" onClick={() => toggleExpand(row)}>
{isExpanded ? <ExpandLessIcon color="info" /> : <ExpandMoreIcon color="info" />}
</IconButton>
),
},
{
field: (row: Row, metadata) => {
const isOutgoing = getIsOutgoingTransaction(row);
Expand Down Expand Up @@ -235,15 +243,6 @@ const getCols = (type: WalletType, isSyncing, getOfferRecord, navigate, location
),
title: <Trans>Fee</Trans>,
},

{
width: '70px',
field: (row: Row, metadata, isExpanded, toggleExpand) => (
<IconButton aria-label="expand row" size="small" onClick={() => toggleExpand(row)}>
{isExpanded ? <ExpandLessIcon color="info" /> : <ExpandMoreIcon color="info" />}
</IconButton>
),
},
];

type Props = {
Expand Down

0 comments on commit 70baa48

Please sign in to comment.