l-min-components 1.0.340 → 1.0.346

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.340",
3
+ "version": "1.0.346",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -37,7 +37,7 @@ const AppMainLayout = () => {
37
37
  useState(false);
38
38
  const [sideMenuLayout, setSideMenuLayout] = useState(true);
39
39
  const [defaultAcct, setDefaultAcct] = useState("");
40
- let centerLayoutStyle = {};
40
+ const [centerLayoutStyle, setCenterLayoutStyle] = useState({});
41
41
 
42
42
  useEffect(() => {
43
43
  if (window.location.host.includes("coming")) {
@@ -82,6 +82,7 @@ const AppMainLayout = () => {
82
82
  selectedCourseId,
83
83
  setSelectedCourseId,
84
84
  centerLayoutStyle,
85
+ setCenterLayoutStyle
85
86
  }}
86
87
  >
87
88
  <Layout
@@ -107,7 +107,7 @@ const SideMenu = ({
107
107
  }
108
108
  if (
109
109
  window.location.pathname.includes("/enterprise/reports") &&
110
- path === "/enterprise/reports/students"
110
+ path === "/enterprise/reports"
111
111
  ) {
112
112
  return (statusText = true);
113
113
  }
@@ -145,8 +145,8 @@ const SideMenu = ({
145
145
  return (statusText = true);
146
146
  }
147
147
  if (
148
- window.location.pathname.includes("/instructor/manage-courses") &&
149
- path === "/instructor/manage-courses"
148
+ window.location.pathname.includes("/instructor/courses") &&
149
+ path === "/instructor/courses"
150
150
  ) {
151
151
  return (statusText = true);
152
152
  }
@@ -125,7 +125,7 @@ export const sideMenuOptions = [
125
125
  notifications: null,
126
126
  },
127
127
  {
128
- path: "/enterprise/reports/students",
128
+ path: "/enterprise/reports",
129
129
  icon: <AwardIcon />,
130
130
  iconActive: <AwardIconActive />,
131
131
  text: "Reports",
@@ -178,7 +178,7 @@ export const sideMenuOptions = [
178
178
  text: "Manage Report",
179
179
  },
180
180
  {
181
- path: "/instructor/manage-courses",
181
+ path: "/instructor/courses",
182
182
  icon: <CoursesIcon />,
183
183
  iconActive: <CoursesIconActive />,
184
184
  text: "Manage Courses",