website_next: part 2

This commit is contained in:
nym21
2026-07-05 14:08:57 +02:00
parent 0bf2cd77dc
commit eee1a10d2a
23 changed files with 1024 additions and 1046 deletions
+2 -1
View File
@@ -22,6 +22,8 @@ const amounts = /** @type {BtcAmountRecord[]} */ ([]);
* @param {BtcAmount} amount
*/
function renderBtcAmount(element, amount) {
element.dataset.btcAmount = "";
if (redaction.isHidden()) {
element.textContent = FIXED_PRIVATE_TEXT;
return;
@@ -43,7 +45,6 @@ export function createBtcAmount(tag, sats, options = {}) {
signed: options.signed === true,
};
element.classList.add("amount");
amounts.push({ element, amount });
renderBtcAmount(element, amount);