revdev-components 0.56.0 → 0.57.0
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.
- package/build/frontHeader/index.d.ts +1 -1
- package/build/index.js +4 -4
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -5117,7 +5117,7 @@ var FrontHeader = function (_a) {
|
|
|
5117
5117
|
? [
|
|
5118
5118
|
{
|
|
5119
5119
|
value: user.profileHref,
|
|
5120
|
-
label: text.
|
|
5120
|
+
label: text.profile,
|
|
5121
5121
|
},
|
|
5122
5122
|
{
|
|
5123
5123
|
value: user.settingsHref,
|
|
@@ -5132,9 +5132,9 @@ var FrontHeader = function (_a) {
|
|
|
5132
5132
|
}, [user, text]);
|
|
5133
5133
|
var handleSettingRender = React.useCallback(function (_a, _b) {
|
|
5134
5134
|
var value = _a.value, label = _a.label;
|
|
5135
|
-
var className = _b.className
|
|
5136
|
-
return value === "logout" ? (React.createElement("div", { className: className, onClick:
|
|
5137
|
-
}, []);
|
|
5135
|
+
var className = _b.className;
|
|
5136
|
+
return value === "logout" ? (React.createElement("div", { className: className, onClick: user === null || user === void 0 ? void 0 : user.onLogOut }, label)) : (React.createElement(AppLink, { href: value, className: className }, label));
|
|
5137
|
+
}, [user]);
|
|
5138
5138
|
return (React.createElement("div", { className: classNames(s$2.root, (_b = {},
|
|
5139
5139
|
_b[s$2.root__shadow] = shadow,
|
|
5140
5140
|
_b), className) },
|