@dreamtree-org/twreact-ui 1.0.82 → 1.0.84

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/dist/index.esm.js CHANGED
@@ -15830,7 +15830,7 @@ var Dropdown = function Dropdown(_ref) {
15830
15830
  };
15831
15831
 
15832
15832
  var _excluded$b = ["emitter", "content", "notifications"],
15833
- _excluded2$2 = ["emitter", "logo", "items", "user", "notifications", "searchable", "onSearch", "leftIcon", "rightMenuContent", "onLeftIconClick", "onLoginClick", "className"];
15833
+ _excluded2$2 = ["emitter", "logo", "items", "user", "notifications", "searchable", "onSearch", "leftIcon", "rightMenuContent", "onLeftIconClick", "onLoginClick", "onLogoutClick", "className"];
15834
15834
 
15835
15835
  // Simplified Notifications, uses notifications from props and a single effect for fetch/update
15836
15836
  var NotificationsDropdown = function NotificationsDropdown(_ref) {
@@ -15982,6 +15982,10 @@ var Navbar = function Navbar(_ref3) {
15982
15982
  onLoginClick = _ref3$onLoginClick === void 0 ? function () {
15983
15983
  return console.log("invoked onLoginClick");
15984
15984
  } : _ref3$onLoginClick,
15985
+ _ref3$onLogoutClick = _ref3.onLogoutClick,
15986
+ onLogoutClick = _ref3$onLogoutClick === void 0 ? function () {
15987
+ return console.log("invoked onLogoutClick");
15988
+ } : _ref3$onLogoutClick,
15985
15989
  className = _ref3.className,
15986
15990
  props = _objectWithoutProperties$1(_ref3, _excluded2$2);
15987
15991
  var _useState3 = useState(false),
@@ -16018,8 +16022,7 @@ var Navbar = function Navbar(_ref3) {
16018
16022
  onLoginClick === null || onLoginClick === void 0 || onLoginClick();
16019
16023
  };
16020
16024
  var handleLogoutClick = function handleLogoutClick() {
16021
- var _onLogoutClick;
16022
- (_onLogoutClick = onLogoutClick) === null || _onLogoutClick === void 0 || _onLogoutClick();
16025
+ onLogoutClick === null || onLogoutClick === void 0 || onLogoutClick();
16023
16026
  };
16024
16027
 
16025
16028
  // Render navigation items as either <a> or <button>