blue-react 8.9.2 → 8.9.3

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.
@@ -76,7 +76,7 @@ var Layout = /*#__PURE__*/function (_Component) {
76
76
  _this.defaultMatch = ["home"];
77
77
  _this.state = {
78
78
  sidebarIn: props.sidebarIn || false,
79
- expandSidebar: props.expandSidebar || localStorage.getItem("blueLayoutExpandSidebar") !== null,
79
+ expandSidebar: props.expandSidebar || localStorage.getItem("blueLayoutShrinkSidebar") === null,
80
80
  match: null,
81
81
  history: [],
82
82
  hash: window.location.hash,
@@ -259,9 +259,9 @@ var Layout = /*#__PURE__*/function (_Component) {
259
259
  var expandSidebar = this.state.expandSidebar;
260
260
 
261
261
  if (expandSidebar) {
262
- localStorage.removeItem("blueLayoutExpandSidebar");
262
+ localStorage.setItem("blueLayoutShrinkSidebar", "true");
263
263
  } else {
264
- localStorage.setItem("blueLayoutExpandSidebar", "true");
264
+ localStorage.removeItem("blueLayoutShrinkSidebar");
265
265
  }
266
266
 
267
267
  this.setState({