@open-tender/store 1.1.126 → 1.1.128
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.
|
@@ -10,6 +10,8 @@ var Header = function (_a) {
|
|
|
10
10
|
var dispatch = (0, hooks_1.useAppDispatch)();
|
|
11
11
|
var header = ((0, hooks_1.useAppSelector)(slices_1.selectKioskConfig) || {}).header;
|
|
12
12
|
var showButtons = !!(backAction || to);
|
|
13
|
+
var display_sign_in = (0, hooks_1.useAppSelector)(slices_1.selectStoreSettings).display_sign_in;
|
|
14
|
+
console.log('display_sign_in', display_sign_in);
|
|
13
15
|
var back = function () {
|
|
14
16
|
if (backAction) {
|
|
15
17
|
backAction();
|
|
@@ -34,7 +36,7 @@ var Header = function (_a) {
|
|
|
34
36
|
handlers: handlers,
|
|
35
37
|
showButtons: showButtons,
|
|
36
38
|
backText: backText,
|
|
37
|
-
renderSignInButton: renderSignInButton
|
|
39
|
+
renderSignInButton: display_sign_in ? renderSignInButton : undefined
|
|
38
40
|
});
|
|
39
41
|
};
|
|
40
42
|
exports.default = Header;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useAppDispatch, useAppSelector } from '../app/hooks';
|
|
3
|
-
import { selectKioskConfig, toggleSidebar } from '../slices';
|
|
3
|
+
import { selectKioskConfig, selectStoreSettings, toggleSidebar } from '../slices';
|
|
4
4
|
import { default as SignInButtonContainer } from './SignInButton';
|
|
5
5
|
var Header = function (_a) {
|
|
6
6
|
var to = _a.to, _b = _a.backText, backText = _b === void 0 ? 'Back' : _b, backAction = _a.backAction, pathname = _a.pathname, navigate = _a.navigate, children = _a.children, SignInButtonView = _a.SignInButtonView;
|
|
7
7
|
var dispatch = useAppDispatch();
|
|
8
8
|
var header = (useAppSelector(selectKioskConfig) || {}).header;
|
|
9
9
|
var showButtons = !!(backAction || to);
|
|
10
|
+
var display_sign_in = useAppSelector(selectStoreSettings).display_sign_in;
|
|
11
|
+
console.log('display_sign_in', display_sign_in);
|
|
10
12
|
var back = function () {
|
|
11
13
|
if (backAction) {
|
|
12
14
|
backAction();
|
|
@@ -31,7 +33,7 @@ var Header = function (_a) {
|
|
|
31
33
|
handlers: handlers,
|
|
32
34
|
showButtons: showButtons,
|
|
33
35
|
backText: backText,
|
|
34
|
-
renderSignInButton: renderSignInButton
|
|
36
|
+
renderSignInButton: display_sign_in ? renderSignInButton : undefined
|
|
35
37
|
});
|
|
36
38
|
};
|
|
37
39
|
export default Header;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.128",
|
|
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",
|