Skip to content

Commit

Permalink
Review Comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushjindal committed May 27, 2024
1 parent d6315fd commit 1820c30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions blocks/agent-transactions/agent-transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ export default async function decorate(block) {

const tableElement = table({}, thead({}, theadTr), trBody);
const heading1 = h1({}, 'Closed Transactions');
block.append(heading1);
block.append(tableElement);
const anchor = a({ class: 'show-more' });
anchor.addEventListener('click', () => {
if (anchor.classList.contains('show-more')) {
Expand All @@ -103,5 +101,5 @@ export default async function decorate(block) {
}
});

block.append(anchor);
block.replaceChildren(heading1, tableElement, anchor);
}

0 comments on commit 1820c30

Please sign in to comment.