Skip to content

Commit

Permalink
removed dead code, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhipster committed Jan 26, 2024
1 parent 18a615a commit a50bbef
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 1,116 deletions.
1 change: 1 addition & 0 deletions blocks/commerce-cart/commerce-cart.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-extraneous-dependencies */

// Drop-in Tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default async function decorate(block) {

orderConfirmationRenderer.render(OrderConfirmation, {
orderRef,
// eslint-disable-next-line no-console
onContinueShopping: () => console.log('continue shopping'),
})(block);
}
2 changes: 1 addition & 1 deletion blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ header .minicart-panel {
display: none;
}

header .minicart-panel--visible {
header .minicart-panel-visible {
display: block;
}

Expand Down
6 changes: 4 additions & 2 deletions blocks/header/header.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable import/no-unresolved */

import { events } from '@dropins/elsie/event-bus.js';
import { getMetadata } from '../../scripts/aem.js';
import { loadFragment } from '../fragment/fragment.js';
Expand Down Expand Up @@ -140,12 +142,12 @@ export default async function decorate(block) {

navTools.append(minicartButton);

// TODO: Toggle Mini Cart - Mini Cart Drop-in is not yet available, go to Cart page instead.
// TODO: Toggle Mini Cart; Mini Cart Drop-in is not yet available, go to Cart page instead.
// const minicartPanel = navTools.querySelector('.minicart-panel');
// let cartVisible = false;
navTools.querySelector('.nav-cart-button').addEventListener('click', async () => {
// cartVisible = !cartVisible;
// minicartPanel.classList.toggle('minicart-panel--visible', cartVisible);
// minicartPanel.classList.toggle('minicart-panel-visible', cartVisible);
window.location.href = '/cart';
});

Expand Down
43 changes: 0 additions & 43 deletions blocks/product-details-custom/Icon.js

This file was deleted.

166 changes: 0 additions & 166 deletions blocks/product-details-custom/ProductDetailsCarousel.js

This file was deleted.

17 changes: 0 additions & 17 deletions blocks/product-details-custom/ProductDetailsShimmer.js

This file was deleted.

Loading

0 comments on commit a50bbef

Please sign in to comment.