@open-tender/store 1.1.157 → 1.1.158
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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { LoyaltyProgramSummary } from '@open-tender/types';
|
|
2
2
|
import { AccountLoyaltyProps } from '@open-tender/ui';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
declare const AccountLoyalty: ({ loyaltySummary, navigate, children }: {
|
|
4
|
+
declare const AccountLoyalty: ({ loyaltySummary, navigate, children, navigateTo }: {
|
|
5
5
|
loyaltySummary: LoyaltyProgramSummary;
|
|
6
6
|
navigate: (route: string) => void;
|
|
7
7
|
children: (props: AccountLoyaltyProps) => ReactNode;
|
|
8
|
+
navigateTo: string;
|
|
8
9
|
}) => ReactNode;
|
|
9
10
|
export default AccountLoyalty;
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var hooks_1 = require("../app/hooks");
|
|
4
4
|
var slices_1 = require("../slices");
|
|
5
5
|
var AccountLoyalty = function (_a) {
|
|
6
|
-
var loyaltySummary = _a.loyaltySummary, navigate = _a.navigate, children = _a.children;
|
|
6
|
+
var loyaltySummary = _a.loyaltySummary, navigate = _a.navigate, children = _a.children, navigateTo = _a.navigateTo;
|
|
7
7
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).accountLoyalty;
|
|
8
8
|
var account = (0, hooks_1.useAppSelector)(slices_1.selectCustomer).account;
|
|
9
|
-
var startOrder = function () { return navigate(
|
|
9
|
+
var startOrder = function () { return navigate(navigateTo); };
|
|
10
10
|
var handlers = { startOrder: startOrder };
|
|
11
11
|
if (!config || !account || !loyaltySummary)
|
|
12
12
|
return null;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { LoyaltyProgramSummary } from '@open-tender/types';
|
|
2
2
|
import { AccountLoyaltyProps } from '@open-tender/ui';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
declare const AccountLoyalty: ({ loyaltySummary, navigate, children }: {
|
|
4
|
+
declare const AccountLoyalty: ({ loyaltySummary, navigate, children, navigateTo }: {
|
|
5
5
|
loyaltySummary: LoyaltyProgramSummary;
|
|
6
6
|
navigate: (route: string) => void;
|
|
7
7
|
children: (props: AccountLoyaltyProps) => ReactNode;
|
|
8
|
+
navigateTo: string;
|
|
8
9
|
}) => ReactNode;
|
|
9
10
|
export default AccountLoyalty;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useAppSelector } from '../app/hooks';
|
|
2
2
|
import { selectCustomer, selectKioskConfig } from '../slices';
|
|
3
3
|
var AccountLoyalty = function (_a) {
|
|
4
|
-
var loyaltySummary = _a.loyaltySummary, navigate = _a.navigate, children = _a.children;
|
|
4
|
+
var loyaltySummary = _a.loyaltySummary, navigate = _a.navigate, children = _a.children, navigateTo = _a.navigateTo;
|
|
5
5
|
var config = useAppSelector(selectKioskConfig).accountLoyalty;
|
|
6
6
|
var account = useAppSelector(selectCustomer).account;
|
|
7
|
-
var startOrder = function () { return navigate(
|
|
7
|
+
var startOrder = function () { return navigate(navigateTo); };
|
|
8
8
|
var handlers = { startOrder: startOrder };
|
|
9
9
|
if (!config || !account || !loyaltySummary)
|
|
10
10
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.158",
|
|
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",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@emotion/react": "^11.11.1",
|
|
64
|
-
"@open-tender/types": "^0.4.
|
|
64
|
+
"@open-tender/types": "^0.4.70",
|
|
65
65
|
"@open-tender/ui": "^0.3.105",
|
|
66
|
-
"@open-tender/utils": "^0.4.
|
|
66
|
+
"@open-tender/utils": "^0.4.45",
|
|
67
67
|
"@reduxjs/toolkit": "^2.0.1",
|
|
68
68
|
"date-fns": "2.30.0",
|
|
69
69
|
"date-fns-tz": "^2.0.0",
|