l-min-components 1.0.331 → 1.0.336
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
|
@@ -37,7 +37,7 @@ const AppMainLayout = () => {
|
|
|
37
37
|
useState(false);
|
|
38
38
|
const [sideMenuLayout, setSideMenuLayout] = useState(true);
|
|
39
39
|
const [defaultAcct, setDefaultAcct] = useState("");
|
|
40
|
-
|
|
40
|
+
let centerLayoutStyle = {};
|
|
41
41
|
|
|
42
42
|
useEffect(() => {
|
|
43
43
|
if (window.location.host.includes("coming")) {
|
|
@@ -79,8 +79,8 @@ const SideMenu = ({
|
|
|
79
79
|
return (statusText = true);
|
|
80
80
|
}
|
|
81
81
|
if (
|
|
82
|
-
window.location.pathname.includes("/personal/messages") &&
|
|
83
|
-
path === "/personal/messages"
|
|
82
|
+
window.location.pathname.includes("/msg/personal/messages") &&
|
|
83
|
+
path === "/msg/personal/messages"
|
|
84
84
|
) {
|
|
85
85
|
return (statusText = true);
|
|
86
86
|
}
|
|
@@ -106,8 +106,7 @@ const SideMenu = ({
|
|
|
106
106
|
return (statusText = true);
|
|
107
107
|
}
|
|
108
108
|
if (
|
|
109
|
-
window.location.pathname.includes("/enterprise/reports")
|
|
110
|
-
path === "/enterprise/reports/"
|
|
109
|
+
window.location.pathname.includes("/enterprise/reports")
|
|
111
110
|
) {
|
|
112
111
|
return (statusText = true);
|
|
113
112
|
}
|
|
@@ -118,8 +117,8 @@ const SideMenu = ({
|
|
|
118
117
|
return (statusText = true);
|
|
119
118
|
}
|
|
120
119
|
if (
|
|
121
|
-
window.location.pathname.includes("/enterprise/messages") &&
|
|
122
|
-
path === "/enterprise/messages"
|
|
120
|
+
window.location.pathname.includes("/msg/enterprise/messages") &&
|
|
121
|
+
path === "/msg/enterprise/messages"
|
|
123
122
|
) {
|
|
124
123
|
return (statusText = true);
|
|
125
124
|
}
|
|
@@ -169,8 +168,8 @@ const SideMenu = ({
|
|
|
169
168
|
return (statusText = true);
|
|
170
169
|
}
|
|
171
170
|
if (
|
|
172
|
-
window.location.pathname.includes("/instructor/messages") &&
|
|
173
|
-
path === "/instructor/messages"
|
|
171
|
+
window.location.pathname.includes("/msg/instructor/messages") &&
|
|
172
|
+
path === "/msg/instructor/messages"
|
|
174
173
|
) {
|
|
175
174
|
return (statusText = true);
|
|
176
175
|
}
|
|
@@ -217,7 +216,7 @@ const SideMenu = ({
|
|
|
217
216
|
if (
|
|
218
217
|
window.location.hostname.includes("staging")
|
|
219
218
|
) {
|
|
220
|
-
window.location.href = `https://559staging.learngual.com
|
|
219
|
+
window.location.href = `https://559staging.learngual.com${path}`;
|
|
221
220
|
} else if (window.location.hostname.includes("localhost")) {
|
|
222
221
|
window.location.href = `http://localhost:${window.location.port}${path}`;
|
|
223
222
|
}
|
|
@@ -137,19 +137,19 @@ export const sideMenuOptions = [
|
|
|
137
137
|
text: "Courses",
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
|
-
path: "/enterprise/manage-teams
|
|
140
|
+
path: "/enterprise/manage-teams",
|
|
141
141
|
icon: <TeamsIcon />,
|
|
142
142
|
iconActive: <TeamsIconActive />,
|
|
143
143
|
text: "Manage Teams",
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
path: "/enterprise/messages",
|
|
146
|
+
path: "/msg/enterprise/messages",
|
|
147
147
|
icon: <MessagesIcon />,
|
|
148
148
|
iconActive: <MessagesIconActive />,
|
|
149
149
|
text: "Messages",
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
path: "/enterprise/announcements
|
|
152
|
+
path: "/enterprise/announcements",
|
|
153
153
|
icon: <AnnouncementsIcon />,
|
|
154
154
|
iconActive: <AnnouncementsIconActive />,
|
|
155
155
|
text: "Announcements",
|
|
@@ -190,7 +190,7 @@ export const sideMenuOptions = [
|
|
|
190
190
|
text: "Manage Student",
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
path: "/instructor/messages",
|
|
193
|
+
path: "/msg/instructor/messages",
|
|
194
194
|
icon: <MessagesIcon />,
|
|
195
195
|
iconActive: <MessagesIconActive />,
|
|
196
196
|
text: "Messages",
|
|
@@ -243,7 +243,7 @@ export const sideMenuOptions = [
|
|
|
243
243
|
text: "Reports",
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
path: "/personal/messages",
|
|
246
|
+
path: "/msg/personal/messages",
|
|
247
247
|
icon: <MessagesIcon />,
|
|
248
248
|
iconActive: <MessagesIconActive />,
|
|
249
249
|
text: "Messages",
|