Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarMerino committed Sep 17, 2024
1 parent 3d5cfed commit 1d10801
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
32 changes: 16 additions & 16 deletions blocks/commerce-checkout/commerce-checkout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/********************************************************************
/** ******************************************************************
* ADOBE CONFIDENTIAL
* __________________
*
Expand All @@ -13,7 +13,7 @@
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*******************************************************************/
****************************************************************** */

// Dropin Tools
import {
Expand Down Expand Up @@ -74,7 +74,7 @@ const heading = createElementWithClass('div', 'checkout__heading');
const headingTitle = createElementWithClass('h1', 'checkout__heading-title');
const headingDivider = createElementWithClass(
'div',
'checkout__heading-divider'
'checkout__heading-divider',
);
const main = createElementWithClass('div', 'checkout__main');
const aside = createElementWithClass('div', 'checkout__aside');
Expand All @@ -83,27 +83,27 @@ const emptyCart = createElementWithClass('div', 'checkout__empty-cart');
const errorBanner = createElementWithClass('div', 'checkout__error-banner');
const mergedCartBanner = createElementWithClass(
'div',
'checkout__merged-cart-banner'
'checkout__merged-cart-banner',
);
const overlaySpinner = createElementWithClass(
'div',
'checkout__overlay-spinner'
'checkout__overlay-spinner',
);
const outOfStock = createElementWithClass('div', 'checkout__out-of-stock');
const login = createElementWithClass('div', 'checkout__login');
const shippingForm = createElementWithClass('div', 'checkout__shipping-form');
const billToShippingAddress = createElementWithClass(
'div',
'checkout__bill-to-shipping-address'
'checkout__bill-to-shipping-address',
);
const billingForm = createElementWithClass('div', 'checkout__billing-form');
const shippingMethods = createElementWithClass(
'div',
'checkout__shipping-methods'
'checkout__shipping-methods',
);
const paymentMethods = createElementWithClass(
'div',
'checkout__payment-methods'
'checkout__payment-methods',
);
const orderSummary = createElementWithClass('div', 'checkout__order-summary');
const cartSummaryList = createElementWithClass('div', 'cart-summary-list');
Expand Down Expand Up @@ -132,7 +132,7 @@ function renderMobileLayout(block) {
paymentMethods,
orderSummary,
placeOrder,
overlaySpinner
overlaySpinner,
);

block.replaceChildren(root);
Expand All @@ -147,7 +147,7 @@ function renderDesktopLayout(block) {
billToShippingAddress,
billingForm,
shippingMethods,
paymentMethods
paymentMethods,
);

aside.replaceChildren(orderSummary, cartSummaryList);
Expand All @@ -158,7 +158,7 @@ function renderDesktopLayout(block) {
main,
aside,
placeOrder,
overlaySpinner
overlaySpinner,
);

block.replaceChildren(root);
Expand Down Expand Up @@ -302,10 +302,10 @@ export default async function decorate(block) {
})(login);

checkoutProvider.render(ShippingForm, { hideOnVirtualCart: true })(
shippingForm
shippingForm,
);
checkoutProvider.render(BillToShippingAddress, { hideOnVirtualCart: true })(
billToShippingAddress
billToShippingAddress,
);
checkoutProvider.render(BillingForm)(billingForm);

Expand Down Expand Up @@ -352,12 +352,12 @@ export default async function decorate(block) {

const cartSummaryListHeadingText = document.createElement('div');
cartSummaryListHeadingText.classList.add(
'cart-summary-list__heading-text'
'cart-summary-list__heading-text',
);

cartSummaryListHeadingText.innerText = title.replace(
'({count})',
headingCtx.count ? `(${headingCtx.count})` : ''
headingCtx.count ? `(${headingCtx.count})` : '',
);
const editCartLink = document.createElement('a');
editCartLink.classList.add('cart-summary-list__edit');
Expand All @@ -372,7 +372,7 @@ export default async function decorate(block) {
headingCtx.onChange((nextHeadingCtx) => {
cartSummaryListHeadingText.innerText = title.replace(
'({count})',
nextHeadingCtx.count ? `(${nextHeadingCtx.count})` : ''
nextHeadingCtx.count ? `(${nextHeadingCtx.count})` : '',
);
});
},
Expand Down
1 change: 1 addition & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* governing permissions and limitations under the License.
*/

/* stylelint-disable no-empty-source */
:root, .dropin-design {
/* Adobe Commerce Dropin design tokens */
--color-brand-300: #6d6d6d;
Expand Down

0 comments on commit 1d10801

Please sign in to comment.