Skip to content

Commit

Permalink
lint errors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wz914876 committed Feb 6, 2024
1 parent 3acc29c commit f329e16
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions blocks/social-media/social-media.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {
button, span,
} from '../../scripts/dom-builder.js';
import { button, span } from '../../scripts/dom-builder.js';
import { decorateIcons } from '../../scripts/lib-franklin.js';

function goBack() {
Expand Down Expand Up @@ -30,7 +28,7 @@ export default function decorate(block) {
block.innerHTML = social;
const childDivs = block.childNodes;
childDivs.forEach((divs, index) => {
if (index === 1) divs.remove(); //to remove empty divs
if (index === 1) divs.remove();
});
if (goParentBack.className.includes('back-btn')) {
goParentBack.classList.add(...'font-normal inline-flex items-center gap-4 transition leading-6 py-1 px-1.5 rounded-lg hover:bg-slate-900/[0.03]'.split(' '));
Expand Down

0 comments on commit f329e16

Please sign in to comment.