@open-tender/store 1.1.44 → 1.1.45
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.
|
@@ -13,7 +13,7 @@ var Upsells = function (_a) {
|
|
|
13
13
|
var itemLookup = (0, react_1.useMemo)(function () { return (0, utils_1.makeMenuItemLookup)(categories); }, [categories]);
|
|
14
14
|
var items = (0, utils_1.makeUpsellItems)(itemIds, itemLookup);
|
|
15
15
|
var handlers = { close: close };
|
|
16
|
-
var renderUpsellItem = (0, react_1.useCallback)(function (item, isLast) { return (react_1.default.createElement(UpsellItem_1.default, { key: item.id, apiUrl: apiUrl, item: item, isLast: isLast, children: UpsellItemView })); }, [apiUrl, UpsellItemView]);
|
|
16
|
+
var renderUpsellItem = (0, react_1.useCallback)(function (item, isLast) { return (react_1.default.createElement(UpsellItem_1.default, { key: item.id, apiUrl: apiUrl, item: item, isLast: isLast, callback: close, children: UpsellItemView })); }, [apiUrl, close, UpsellItemView]);
|
|
17
17
|
return children({
|
|
18
18
|
config: config,
|
|
19
19
|
handlers: handlers,
|
|
@@ -10,7 +10,7 @@ var Upsells = function (_a) {
|
|
|
10
10
|
var itemLookup = useMemo(function () { return makeMenuItemLookup(categories); }, [categories]);
|
|
11
11
|
var items = makeUpsellItems(itemIds, itemLookup);
|
|
12
12
|
var handlers = { close: close };
|
|
13
|
-
var renderUpsellItem = useCallback(function (item, isLast) { return (React.createElement(UpsellItemContainer, { key: item.id, apiUrl: apiUrl, item: item, isLast: isLast, children: UpsellItemView })); }, [apiUrl, UpsellItemView]);
|
|
13
|
+
var renderUpsellItem = useCallback(function (item, isLast) { return (React.createElement(UpsellItemContainer, { key: item.id, apiUrl: apiUrl, item: item, isLast: isLast, callback: close, children: UpsellItemView })); }, [apiUrl, close, UpsellItemView]);
|
|
14
14
|
return children({
|
|
15
15
|
config: config,
|
|
16
16
|
handlers: handlers,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.45",
|
|
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",
|