@boomerang-io/carbon-addons-boomerang-react 4.6.21-beta.7 → 4.6.21-beta.8

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.
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var reactRouterDom = require('react-router-dom');
7
6
  var cx = require('classnames');
8
7
  var react = require('@carbon/react');
9
8
  var TooltipHover = require('../TooltipHover/TooltipHover.js');
@@ -38,7 +37,6 @@ function AdvantageSideNav(props) {
38
37
  const [activeMenu, setActiveMenu] = React__default.default.useState(false);
39
38
  const isMenuOpen = isOpen || activeMenu;
40
39
  const windowLocation = window.location;
41
- const historyy = reactRouterDom.useHistory();
42
40
  const isPartnerUser = user?.type === UserType.USER_PLATFORM_ROLE.Partner;
43
41
  const joinButtontitle = showSelectTeamPurpose ? "Create Team" : "Create or Join Team";
44
42
  const hamburguerMenu = document.getElementById("header-sidenav-menu-button");
@@ -231,9 +229,9 @@ function AdvantageSideNav(props) {
231
229
  } }, "Document Collections")) : null,
232
230
  showSecondDivider ? React__default.default.createElement(react.SideNavDivider, null) : null,
233
231
  catalogNavlink ? (React__default.default.createElement(react.SideNavLink, { "data-testid": "sidenav-catalog-link", isActive: location.pathname.includes("/catalog"), renderIcon: icons.Catalog, href: catalogNavlink, onClick: (e) => {
234
- console.log("sfsf");
232
+ console.log("ss", catalogNavlink);
235
233
  e.preventDefault();
236
- historyy.push(catalogNavlink);
234
+ history.push(catalogNavlink);
237
235
  } }, "Catalog")) : null,
238
236
  settingsLink ? (React__default.default.createElement(react.SideNavLink, { "data-testid": "sidenav-settings-link", renderIcon: icons.Settings, href: settingsLink, onClick: (e) => {
239
237
  handleSettingsClick();
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { useHistory } from 'react-router-dom';
3
2
  import cx from 'classnames';
4
3
  import { SideNavLink, SideNav, SideNavItems, SideNavDivider, Tag } from '@carbon/react';
5
4
  import TooltipHover from '../TooltipHover/TooltipHover.js';
@@ -29,7 +28,6 @@ function AdvantageSideNav(props) {
29
28
  const [activeMenu, setActiveMenu] = React.useState(false);
30
29
  const isMenuOpen = isOpen || activeMenu;
31
30
  const windowLocation = window.location;
32
- const historyy = useHistory();
33
31
  const isPartnerUser = user?.type === USER_PLATFORM_ROLE.Partner;
34
32
  const joinButtontitle = showSelectTeamPurpose ? "Create Team" : "Create or Join Team";
35
33
  const hamburguerMenu = document.getElementById("header-sidenav-menu-button");
@@ -222,9 +220,9 @@ function AdvantageSideNav(props) {
222
220
  } }, "Document Collections")) : null,
223
221
  showSecondDivider ? React.createElement(SideNavDivider, null) : null,
224
222
  catalogNavlink ? (React.createElement(SideNavLink, { "data-testid": "sidenav-catalog-link", isActive: location.pathname.includes("/catalog"), renderIcon: Catalog, href: catalogNavlink, onClick: (e) => {
225
- console.log("sfsf");
223
+ console.log("ss", catalogNavlink);
226
224
  e.preventDefault();
227
- historyy.push(catalogNavlink);
225
+ history.push(catalogNavlink);
228
226
  } }, "Catalog")) : null,
229
227
  settingsLink ? (React.createElement(SideNavLink, { "data-testid": "sidenav-settings-link", renderIcon: Settings, href: settingsLink, onClick: (e) => {
230
228
  handleSettingsClick();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@boomerang-io/carbon-addons-boomerang-react",
3
3
  "description": "Carbon Addons for Boomerang apps",
4
- "version": "4.6.21-beta.7",
4
+ "version": "4.6.21-beta.8",
5
5
  "author": {
6
6
  "name": "Tim Bula",
7
7
  "email": "timrbula@gmail.com"