simple text labels for lightning

This commit is contained in:
Paul Miller
2023-05-10 11:20:09 -05:00
parent 4407474f42
commit f1dcfb16ab
4 changed files with 47 additions and 54 deletions

View File

@@ -52,7 +52,9 @@ type ReceiveState = "edit" | "show" | "paid"
type PaidState = "lightning_paid" | "onchain_paid";
function tagItemsToLabels(items: TagItem[]) {
return items.map(item => item.kind === "contact" ? item.id : item.name)
const labels = items.map(item => item.kind === "contact" ? item.id : item.name)
console.log("Labels", labels)
return labels;
}
export default function Receive() {