-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import isQuickViewOpen from "./isQuickViewOpen"; | ||
Check failure on line 1 in _dev/js/theme/core/product/utils/productEventContextSelector.js GitHub Actions / Code quality - ESLint
|
||
import prestashop from "prestashop"; | ||
Check failure on line 2 in _dev/js/theme/core/product/utils/productEventContextSelector.js GitHub Actions / Code quality - ESLint
Check failure on line 2 in _dev/js/theme/core/product/utils/productEventContextSelector.js GitHub Actions / Code quality - ESLint
Check failure on line 2 in _dev/js/theme/core/product/utils/productEventContextSelector.js GitHub Actions / Code quality - ESLint
|
||
|
||
const productEventContextSelector = () => { | ||
const { | ||
quickViewModal, | ||
container, | ||
} = prestashop.selectors.product; | ||
|
||
return isQuickViewOpen() ? quickViewModal : container; | ||
} | ||
Check failure on line 11 in _dev/js/theme/core/product/utils/productEventContextSelector.js GitHub Actions / Code quality - ESLint
|
||
|
||
export default productEventContextSelector; |