l-min-components 1.0.334 → 1.0.340
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 +1 -1
- package/src/components/AppMainLayout/index.jsx +1 -1
- package/src/components/errorPage/index.jsx +1 -0
- package/src/components/errorPage/style.jsx +57 -52
- package/src/components/sideBar/sideMenu/index.jsx +10 -12
- package/src/components/sideBar/userCard/styles/index.jsx +1 -0
- package/src/hooks/leftNavMenu.jsx +3 -3
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")) {
|
|
@@ -1,62 +1,67 @@
|
|
|
1
|
-
import styled from "styled-components"
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
3
2
|
|
|
4
3
|
export const Container = styled.div`
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
height: 94vh;
|
|
12
|
-
|
|
13
|
-
@media only screen and (max-width: 1500px) {
|
|
14
|
-
margin: -3%;
|
|
15
|
-
}
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
align-items: center;
|
|
7
|
+
background: #fff;
|
|
8
|
+
padding-left: 100px;
|
|
9
|
+
height: 100vh;
|
|
16
10
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
@media only screen and (max-width: 1500px) {
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
20
14
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
font-style: normal;
|
|
25
|
-
font-weight: 800;
|
|
26
|
-
font-size: 40px;
|
|
27
|
-
line-height: 65px;
|
|
28
|
-
color: #313333;
|
|
29
|
-
}
|
|
30
|
-
h2{
|
|
31
|
-
font-family: 'Nunito';
|
|
32
|
-
font-style: normal;
|
|
33
|
-
font-weight: 500;
|
|
34
|
-
font-size: 38px;
|
|
35
|
-
line-height: 65px;
|
|
36
|
-
color: #313333;
|
|
37
|
-
}
|
|
38
|
-
p{
|
|
39
|
-
font-family: 'Inter';
|
|
40
|
-
font-style: normal;
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
font-size: 16px;
|
|
43
|
-
line-height: 32px;
|
|
44
|
-
color: #18191F;
|
|
45
|
-
// width: 100%;
|
|
46
|
-
}
|
|
15
|
+
.right {
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-gap: 10px;
|
|
47
18
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
19
|
+
h3 {
|
|
20
|
+
font-family: "Nunito";
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-weight: 800;
|
|
23
|
+
font-size: 45px;
|
|
24
|
+
line-height: 45px;
|
|
25
|
+
color: #313333;
|
|
26
|
+
margin-bottom: 10px;
|
|
27
|
+
}
|
|
28
|
+
h2 {
|
|
29
|
+
font-family: "Nunito";
|
|
30
|
+
font-style: normal;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
font-size: 45px;
|
|
33
|
+
line-height: 65px;
|
|
34
|
+
color: #313333;
|
|
35
|
+
}
|
|
36
|
+
p {
|
|
37
|
+
font-family: "Inter", sans-serif;
|
|
38
|
+
font-style: normal;
|
|
39
|
+
font-weight: 400;
|
|
40
|
+
font-size: 18px;
|
|
41
|
+
line-height: 32px;
|
|
42
|
+
color: #18191f;
|
|
43
|
+
max-width: 536px;
|
|
44
|
+
// width: 100%;
|
|
51
45
|
}
|
|
52
46
|
|
|
53
|
-
|
|
54
|
-
@media only screen and (max-width: 1336px) {
|
|
55
|
-
img{
|
|
56
|
-
width: 773px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
47
|
+
@media only screen and (max-width: 1800px) {
|
|
59
48
|
}
|
|
49
|
+
}
|
|
60
50
|
|
|
51
|
+
.left {
|
|
52
|
+
width: 80%;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: end;
|
|
55
|
+
justify-content: end;
|
|
56
|
+
/* align-self: flex-end; */
|
|
57
|
+
img {
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
}
|
|
61
|
+
@media only screen and (max-width: 1336px) {
|
|
62
|
+
img {
|
|
63
|
+
/* width: 773px; */
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
61
67
|
`;
|
|
62
|
-
|
|
@@ -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,7 +106,8 @@ const SideMenu = ({
|
|
|
106
106
|
return (statusText = true);
|
|
107
107
|
}
|
|
108
108
|
if (
|
|
109
|
-
window.location.pathname.includes("/enterprise/reports")
|
|
109
|
+
window.location.pathname.includes("/enterprise/reports") &&
|
|
110
|
+
path === "/enterprise/reports/students"
|
|
110
111
|
) {
|
|
111
112
|
return (statusText = true);
|
|
112
113
|
}
|
|
@@ -117,8 +118,8 @@ const SideMenu = ({
|
|
|
117
118
|
return (statusText = true);
|
|
118
119
|
}
|
|
119
120
|
if (
|
|
120
|
-
window.location.pathname.includes("/enterprise/messages") &&
|
|
121
|
-
path === "/enterprise/messages"
|
|
121
|
+
window.location.pathname.includes("/msg/enterprise/messages") &&
|
|
122
|
+
path === "/msg/enterprise/messages"
|
|
122
123
|
) {
|
|
123
124
|
return (statusText = true);
|
|
124
125
|
}
|
|
@@ -168,8 +169,8 @@ const SideMenu = ({
|
|
|
168
169
|
return (statusText = true);
|
|
169
170
|
}
|
|
170
171
|
if (
|
|
171
|
-
window.location.pathname.includes("/instructor/messages") &&
|
|
172
|
-
path === "/instructor/messages"
|
|
172
|
+
window.location.pathname.includes("/msg/instructor/messages") &&
|
|
173
|
+
path === "/msg/instructor/messages"
|
|
173
174
|
) {
|
|
174
175
|
return (statusText = true);
|
|
175
176
|
}
|
|
@@ -213,14 +214,11 @@ const SideMenu = ({
|
|
|
213
214
|
window.location.href = `https://developer.learngual.com${path}`;
|
|
214
215
|
}
|
|
215
216
|
|
|
216
|
-
if (
|
|
217
|
-
window.location.hostname.includes("staging")
|
|
218
|
-
) {
|
|
217
|
+
if (window.location.hostname.includes("staging")) {
|
|
219
218
|
window.location.href = `https://559staging.learngual.com${path}`;
|
|
220
219
|
} else if (window.location.hostname.includes("localhost")) {
|
|
221
220
|
window.location.href = `http://localhost:${window.location.port}${path}`;
|
|
222
|
-
}
|
|
223
|
-
|
|
221
|
+
}
|
|
224
222
|
}}
|
|
225
223
|
// to={route.path}
|
|
226
224
|
key={index}
|
|
@@ -143,7 +143,7 @@ export const sideMenuOptions = [
|
|
|
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",
|
|
@@ -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",
|