From cbce8b297e196ed47ffc698a625b7cfea3583e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Ste=CC=A8pien=CC=81?= Date: Tue, 24 Oct 2023 00:15:13 +0200 Subject: [PATCH] Fixes to components imports --- _dev/js/theme/core/display/psShowHide.js | 2 +- _dev/js/theme/core/selectors.js | 2 +- _dev/js/theme/index.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_dev/js/theme/core/display/psShowHide.js b/_dev/js/theme/core/display/psShowHide.js index 6ea0834b..a1630daf 100644 --- a/_dev/js/theme/core/display/psShowHide.js +++ b/_dev/js/theme/core/display/psShowHide.js @@ -1,4 +1,4 @@ -import useToggleDisplay from '@js/theme/components/display/useToggleDisplay'; +import useToggleDisplay from '../../../utils/display/useToggleDisplay'; /** * Toggle the display of elements with the 'ps-shown-by-js' and 'ps-hidden-by-js' classes. diff --git a/_dev/js/theme/core/selectors.js b/_dev/js/theme/core/selectors.js index 7be3e0ef..96672b84 100644 --- a/_dev/js/theme/core/selectors.js +++ b/_dev/js/theme/core/selectors.js @@ -1,5 +1,5 @@ import prestashop from 'prestashop'; -import DOMReady from '../../utils/DOM/DOMHelpers'; +import { DOMReady } from '../../utils/DOM/DOMHelpers'; prestashop.selectors = { quantityWanted: '#quantity_wanted', diff --git a/_dev/js/theme/index.js b/_dev/js/theme/index.js index db020550..39d7e149 100644 --- a/_dev/js/theme/index.js +++ b/_dev/js/theme/index.js @@ -1,5 +1,6 @@ import EventEmitter from 'events'; +import './core/index'; import './vendors/bootstrap/bootstrap-imports'; import './components/dynamic-bootstrap-components'; import bsCustomFileInput from 'bs-custom-file-input';