l-min-components 1.0.1108 → 1.0.1115
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
|
@@ -70,6 +70,7 @@ const HeaderComponent = (props) => {
|
|
|
70
70
|
updateUserAccountData,
|
|
71
71
|
handleUpdateUserAccount,
|
|
72
72
|
handleGetUnreadNotificationPersonal,
|
|
73
|
+
handleGeneralNotificationCountPersonal
|
|
73
74
|
} = useHeader();
|
|
74
75
|
const { pathname } = useLocation();
|
|
75
76
|
const { setGeneralData, generalData, notificationMarkReadData } =
|
|
@@ -119,7 +120,13 @@ const HeaderComponent = (props) => {
|
|
|
119
120
|
);
|
|
120
121
|
|
|
121
122
|
useEffect(() => {
|
|
122
|
-
if (accountType
|
|
123
|
+
if (accountType && accountType !== "personal") {
|
|
124
|
+
handleGeneralNotificationCount(accountType);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (accountType && accountType === "personal") {
|
|
128
|
+
handleGeneralNotificationCountPersonal()
|
|
129
|
+
}
|
|
123
130
|
}, [accountType]);
|
|
124
131
|
|
|
125
132
|
useEffect(() => {
|
|
@@ -136,7 +136,7 @@ export const sideMenuOptions = [
|
|
|
136
136
|
path: "/enterprise/manage-teams",
|
|
137
137
|
icon: <TeamsIcon />,
|
|
138
138
|
iconActive: <TeamsIconActive />,
|
|
139
|
-
text: "Manage
|
|
139
|
+
text: "Manage teams",
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
path: "/msg/enterprise/messages",
|
|
@@ -154,7 +154,7 @@ export const sideMenuOptions = [
|
|
|
154
154
|
path: "/enterprise/file-manager",
|
|
155
155
|
icon: <FileManagerIcon />,
|
|
156
156
|
iconActive: <FileManagerIconActive />,
|
|
157
|
-
text: "File
|
|
157
|
+
text: "File manager",
|
|
158
158
|
},
|
|
159
159
|
],
|
|
160
160
|
},
|
|
@@ -171,19 +171,19 @@ export const sideMenuOptions = [
|
|
|
171
171
|
path: "/instructor/reports",
|
|
172
172
|
icon: <AwardIcon />,
|
|
173
173
|
iconActive: <AwardIconActive />,
|
|
174
|
-
text: "Manage
|
|
174
|
+
text: "Manage report",
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
path: "/instructor/courses",
|
|
178
178
|
icon: <CoursesIcon />,
|
|
179
179
|
iconActive: <CoursesIconActive />,
|
|
180
|
-
text: "Manage
|
|
180
|
+
text: "Manage courses",
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
path: "/instructor/manage-students",
|
|
184
184
|
icon: <ManageStudentsIcon />,
|
|
185
185
|
iconActive: <ManageStudentsIconActive />,
|
|
186
|
-
text: "Manage
|
|
186
|
+
text: "Manage student",
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
path: "/msg/instructor/messages",
|
|
@@ -208,7 +208,7 @@ export const sideMenuOptions = [
|
|
|
208
208
|
path: "/instructor/file-manager",
|
|
209
209
|
icon: <FileManagerIcon />,
|
|
210
210
|
iconActive: <FileManagerIconActive />,
|
|
211
|
-
text: "File
|
|
211
|
+
text: "File manager",
|
|
212
212
|
},
|
|
213
213
|
],
|
|
214
214
|
},
|
|
@@ -231,7 +231,7 @@ export const sideMenuOptions = [
|
|
|
231
231
|
path: "/personal/courses",
|
|
232
232
|
icon: <CoursesIcon />,
|
|
233
233
|
iconActive: <CoursesIconActive />,
|
|
234
|
-
text: "My
|
|
234
|
+
text: "My courses",
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
path: "/personal/reports",
|