@copart/ops-tool-kit 1.12.0-alpha.17 → 1.12.0-alpha.18

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.
@@ -32,7 +32,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
32
32
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
33
33
 
34
34
  const name$r = "@copart/ops-tool-kit";
35
- const version$7 = "1.12.0-alpha.17";
35
+ const version$7 = "1.12.0-alpha.18";
36
36
  const main$1 = "dist/ops-tool-kit.js";
37
37
  const style = "dist/ops-tool-kit.css";
38
38
  const files = [
@@ -46029,6 +46029,13 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
46029
46029
  if (showCounts) {
46030
46030
  setCountsLoading(true);
46031
46031
  reloadCounts(navItem.route);
46032
+ if (countsRef && _typeof(countsRef) === 'object') {
46033
+ countsRef.current = {
46034
+ refreshCounts: function refreshCounts() {
46035
+ return reloadCounts(navItem.route);
46036
+ }
46037
+ };
46038
+ }
46032
46039
  }
46033
46040
  }, [activeSubmenu]);
46034
46041
  var reloadCounts = function reloadCounts(menuItemName) {
@@ -46055,13 +46062,6 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
46055
46062
  navigateToItem(navItem);
46056
46063
  }
46057
46064
  };
46058
- React.useEffect(function () {
46059
- if (countsRef && _typeof(countsRef) === 'object') {
46060
- countsRef.current = {
46061
- refreshCounts: reloadCounts
46062
- };
46063
- }
46064
- }, [countsRef]);
46065
46065
  return /*#__PURE__*/React__default["default"].createElement("div", {
46066
46066
  className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel2",
46067
46067
  animate: isMenuExpanded ? 'open' : 'closed'