Skip to content

Commit

Permalink
feat(guard-app): add revenue tx id column to revenues table
Browse files Browse the repository at this point in the history
  • Loading branch information
mkermani144 committed Oct 14, 2023
1 parent 4954101 commit cf206d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/guard/app/revenues/TableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ export const tabletHeader = [
width: 150,
},
},
{
title: 'Reward Tx Id',
cellProps: {
width: 150,
},
},
];

const renderValue = (value?: string | number | undefined) => {
Expand Down Expand Up @@ -166,6 +172,10 @@ export const MobileRow: FC<RowProps> = (props) => {
<EnhancedTableCell>Event Id</EnhancedTableCell>
<EnhancedTableCell>{row.eventId.slice(0, 8)}</EnhancedTableCell>
</TableRow>
<TableRow sx={rowStyles}>
<EnhancedTableCell>Reward Tx Id</EnhancedTableCell>
<EnhancedTableCell>{row.rewardTxId.slice(0, 8)}</EnhancedTableCell>
</TableRow>
</>
)}
<TableRow sx={isLoading ? { opacity: 0.3 } : {}}>
Expand Down Expand Up @@ -220,6 +230,7 @@ export const TabletRow: FC<RowProps> = (props) => {
{getDecimalString(row.networkFee, row.lockToken.decimals)}
</EnhancedTableCell>
<EnhancedTableCell>{row.eventId.slice(0, 8)}</EnhancedTableCell>
<EnhancedTableCell>{row.rewardTxId.slice(0, 8)}</EnhancedTableCell>
</TableRow>
);
};

0 comments on commit cf206d5

Please sign in to comment.