l-min-components 1.7.1339 → 1.7.1341
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
|
@@ -22,7 +22,12 @@ import {
|
|
|
22
22
|
FullPageLoader,
|
|
23
23
|
DeveloperBanner,
|
|
24
24
|
} from "../";
|
|
25
|
-
import {
|
|
25
|
+
import {
|
|
26
|
+
leftNavMenu,
|
|
27
|
+
user,
|
|
28
|
+
sideMenuOptions,
|
|
29
|
+
getLeftRoutes,
|
|
30
|
+
} from "../../hooks/leftNavMenu";
|
|
26
31
|
import InstructorAccountSwitcher from "../instructorAccountSwitcher";
|
|
27
32
|
// import SideMenu from "../sideBar/sideMenu";
|
|
28
33
|
import InstructorRightBar from "../fileRightBar/instructorRightBar2";
|
|
@@ -371,7 +376,10 @@ const AppMainLayout = ({ children }) => {
|
|
|
371
376
|
/>
|
|
372
377
|
<MainLayout coming={coming}>
|
|
373
378
|
<LeftLayout>
|
|
374
|
-
<SideBar
|
|
379
|
+
<SideBar
|
|
380
|
+
routes={getLeftRoutes(activeAccountType)}
|
|
381
|
+
findText={findText}
|
|
382
|
+
/>
|
|
375
383
|
{!coming && (
|
|
376
384
|
<>
|
|
377
385
|
{sideMenuLayout && (
|
|
@@ -7,11 +7,11 @@ export const languagesData = [
|
|
|
7
7
|
flag: usFlag,
|
|
8
8
|
slug: "en",
|
|
9
9
|
},
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
10
|
+
// {
|
|
11
|
+
// name: "Korean",
|
|
12
|
+
// flag: koreanFlag,
|
|
13
|
+
// slug: "ko",
|
|
14
|
+
// },
|
|
15
15
|
];
|
|
16
16
|
|
|
17
17
|
export const selectedLanguageData = {
|
|
@@ -89,6 +89,47 @@ export const leftNavMenu = [
|
|
|
89
89
|
},
|
|
90
90
|
];
|
|
91
91
|
|
|
92
|
+
export const getLeftRoutes = (accoutType) => {
|
|
93
|
+
const leftNavMenu = [
|
|
94
|
+
{
|
|
95
|
+
path: `https://www.learngual.com/${accoutType}`,
|
|
96
|
+
label: "Learning",
|
|
97
|
+
icon: <Learning />,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
path: "https://comingsoon.learngual.com/community",
|
|
101
|
+
label: "Community",
|
|
102
|
+
icon: <CommunityIcon />,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
path: "https://comingsoon.learngual.com/fun",
|
|
106
|
+
label: "Fun",
|
|
107
|
+
icon: <FunIcon />,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
path: "https://comingsoon.learngual.com/explore",
|
|
111
|
+
label: "Explore",
|
|
112
|
+
icon: <DuetIcon />,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
path: "https://comingsoon.learngual.com/connect",
|
|
116
|
+
label: "Connect",
|
|
117
|
+
icon: <SpeechIcon />,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
path: "https://comingsoon.learngual.com/dictionary",
|
|
121
|
+
label: "Dictionary",
|
|
122
|
+
icon: <DictionaryIcon />,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
path: "https://demo.learngual.com/type-select",
|
|
126
|
+
label: "Demo",
|
|
127
|
+
icon: <CompuetrerIcon />,
|
|
128
|
+
},
|
|
129
|
+
];
|
|
130
|
+
return leftNavMenu;
|
|
131
|
+
};
|
|
132
|
+
|
|
92
133
|
export const sideMenuOptions = [
|
|
93
134
|
{
|
|
94
135
|
userType: "developer",
|