Skip to content

Commit

Permalink
Merge pull request #2902 from getAlby/feat/boostagram-fields
Browse files Browse the repository at this point in the history
feat: add more boostagram fields to transaction modal
  • Loading branch information
bumi authored Dec 7, 2023
2 parents c393a3e + 5f69fcd commit f724363
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
32 changes: 32 additions & 0 deletions src/app/components/TransactionsTable/TransactionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,38 @@ export default function TransactionModal({
content={transaction.boostagram.episode}
/>
)}
{transaction.boostagram?.action && (
<TransactionDetailRow
title={t("boostagram.action")}
content={transaction.boostagram.action}
/>
)}
{transaction.boostagram?.ts && (
<TransactionDetailRow
title={t("boostagram.timestamp")}
content={transaction.boostagram.ts}
/>
)}
{transaction.boostagram?.value_msat_total && (
<TransactionDetailRow
title={t("boostagram.totalAmount")}
content={Math.floor(
transaction.boostagram.value_msat_total / 1000
)}
/>
)}
{transaction.boostagram?.sender_name && (
<TransactionDetailRow
title={t("boostagram.sender")}
content={transaction.boostagram.sender_name}
/>
)}
{transaction.boostagram?.app_name && (
<TransactionDetailRow
title={t("boostagram.app")}
content={transaction.boostagram.app_name}
/>
)}
{(transaction.preimage || transaction.paymentHash) && (
<>
<div className="flex justify-center mt-4">
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,10 @@
"message": "Message",
"app": "App",
"podcast": "Podcast",
"episode": "Episode"
"episode": "Episode",
"action": "Action",
"timestamp": "Timestamp",
"totalAmount": "Total amount"
},
"open_location": "Open website"
},
Expand Down

0 comments on commit f724363

Please sign in to comment.