Skip to content

Commit

Permalink
Fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
davenichols-DHLS committed Dec 2, 2024
1 parent 1ff16ad commit 992ed6c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions blocks/dave/dave.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
export default function decorate(block) {
const quoteDiv = block.querySelector('div:last-of-type');
const dave = document.createElement('dave');
dave.innerHTML = `<strong>${quoteDiv.innerHTML}</strong>`;
quoteDiv.replaceWith(dave);
const quoteDiv = block.querySelector('div:last-of-type');
const dave = document.createElement('dave');
dave.innerHTML = `<strong>${quoteDiv.innerHTML}</strong>`;
quoteDiv.replaceWith(dave);

const authorDiv = block.querySelector('div:nth-child(2)');
if (authorDiv) {
const authorDiv = block.querySelector('div:nth-child(2)');
if (authorDiv) {
const author = document.createElement('p');
author.innerHTML = `<i>${authorDiv.innerHTML}</i>`;
authorDiv.replaceWith(author);
}
}
}

0 comments on commit 992ed6c

Please sign in to comment.