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.
@@ -10,7 +10,7 @@ export interface FrontHeaderProps {
10
10
  text: {
11
11
  login: string;
12
12
  register: string;
13
- portfolio: string;
13
+ profile: string;
14
14
  settings: string;
15
15
  logout: string;
16
16
  };
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.portfolio,
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, onClick = _b.onClick;
5136
- return value === "logout" ? (React.createElement("div", { className: className, onClick: function () { return onClick(value); } }, label)) : (React.createElement(AppLink, { href: value, className: className }, label));
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) },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.56.0",
3
+ "version": "0.57.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {