Skip to content

Commit

Permalink
Update HistoryTable.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
diyahir committed Mar 8, 2024
1 parent 53de3a9 commit a68cc60
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions packages/nextjs/components/HistoryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ export const HistoryTable = () => {
});
};

function getTooltipText(transaction: HistoricalTransaction) {
switch (transaction.status) {
case "pending":
return "Waiting for the transaction to be included in a block";
case "completed":
return "Expand for more details";
case "failed":
return `Transaction failed: Redeemable at ${new Date(transaction.hashLockTimestamp * 1000).toLocaleString()}`;
case "refunded":
return "Transaction refunded";
default:
return "";
}
}
// function getTooltipText(transaction: HistoricalTransaction) {
// switch (transaction.status) {
// case "pending":
// return "Waiting for the transaction to be included in a block";
// case "completed":
// return "Expand for more details";
// case "failed":
// return `Transaction failed: Redeemable at ${new Date(transaction.hashLockTimestamp * 1000).toLocaleString()}`;
// case "refunded":
// return "Transaction refunded";
// default:
// return "";
// }
// }

function refund(transaction: HistoricalTransaction) {
if (transaction.contractId === "") return;
Expand Down

0 comments on commit a68cc60

Please sign in to comment.