@open-tender/store 1.1.213 → 1.1.215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,8 +17,9 @@ var CategoryNavItem = function (_a) {
|
|
|
17
17
|
var browse = function () {
|
|
18
18
|
dispatch((0, slices_1.setCurrentCategory)(category));
|
|
19
19
|
!isScrollable &&
|
|
20
|
+
display_category_nav_page &&
|
|
20
21
|
navigate &&
|
|
21
|
-
navigate(
|
|
22
|
+
navigate('/menu/category');
|
|
22
23
|
};
|
|
23
24
|
var handlers = { browse: browse };
|
|
24
25
|
if (!config)
|
|
@@ -14,7 +14,7 @@ var CategoryNavOther = function (_a) {
|
|
|
14
14
|
var config = isCurrent ? categoryNavItemSelected : categoryNavItem;
|
|
15
15
|
var _c = (0, hooks_1.useAppSelector)(slices_1.selectMenu), _d = _c.featured, featured = _d === void 0 ? [] : _d, _e = _c.favorites, favorites = _e === void 0 ? [] : _e, _f = _c.recents, recents = _f === void 0 ? [] : _f;
|
|
16
16
|
var getCategoryItemImage = (0, react_1.useCallback)(function () {
|
|
17
|
-
switch (
|
|
17
|
+
switch (title.toLowerCase()) {
|
|
18
18
|
case 'featured':
|
|
19
19
|
return featured.length && featured.length > 0
|
|
20
20
|
? (0, ui_1.makeImageUrl)(featured[0])
|
|
@@ -28,7 +28,7 @@ var CategoryNavOther = function (_a) {
|
|
|
28
28
|
? (0, ui_1.makeImageUrl)(recents[0])
|
|
29
29
|
: null;
|
|
30
30
|
}
|
|
31
|
-
}, [favorites, featured,
|
|
31
|
+
}, [favorites, featured, title, recents]);
|
|
32
32
|
var browse = function () {
|
|
33
33
|
dispatch((0, slices_1.setCurrentCategory)(null));
|
|
34
34
|
navigate(path);
|
|
@@ -15,8 +15,9 @@ var CategoryNavItem = function (_a) {
|
|
|
15
15
|
var browse = function () {
|
|
16
16
|
dispatch(setCurrentCategory(category));
|
|
17
17
|
!isScrollable &&
|
|
18
|
+
display_category_nav_page &&
|
|
18
19
|
navigate &&
|
|
19
|
-
navigate(
|
|
20
|
+
navigate('/menu/category');
|
|
20
21
|
};
|
|
21
22
|
var handlers = { browse: browse };
|
|
22
23
|
if (!config)
|
|
@@ -12,7 +12,7 @@ var CategoryNavOther = function (_a) {
|
|
|
12
12
|
var config = isCurrent ? categoryNavItemSelected : categoryNavItem;
|
|
13
13
|
var _c = useAppSelector(selectMenu), _d = _c.featured, featured = _d === void 0 ? [] : _d, _e = _c.favorites, favorites = _e === void 0 ? [] : _e, _f = _c.recents, recents = _f === void 0 ? [] : _f;
|
|
14
14
|
var getCategoryItemImage = useCallback(function () {
|
|
15
|
-
switch (
|
|
15
|
+
switch (title.toLowerCase()) {
|
|
16
16
|
case 'featured':
|
|
17
17
|
return featured.length && featured.length > 0
|
|
18
18
|
? makeImageUrl(featured[0])
|
|
@@ -26,7 +26,7 @@ var CategoryNavOther = function (_a) {
|
|
|
26
26
|
? makeImageUrl(recents[0])
|
|
27
27
|
: null;
|
|
28
28
|
}
|
|
29
|
-
}, [favorites, featured,
|
|
29
|
+
}, [favorites, featured, title, recents]);
|
|
30
30
|
var browse = function () {
|
|
31
31
|
dispatch(setCurrentCategory(null));
|
|
32
32
|
navigate(path);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.215",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|