mario-teacher-student-client 2.0.10 → 2.0.11
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/dist/index.js +20 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +20 -14
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -157,7 +157,7 @@ var drawerWidth = 280;
|
|
|
157
157
|
var headerHeightDesktop = 64;
|
|
158
158
|
var headerHeightMobile = 55;
|
|
159
159
|
var headerHeightScroll = 0;
|
|
160
|
-
var LOGO = "/images/logo-new.
|
|
160
|
+
var LOGO = "/images/logo-new.svg";
|
|
161
161
|
|
|
162
162
|
var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
163
163
|
var _currentUrl$split, _clsx;
|
|
@@ -301,9 +301,15 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
301
301
|
}, {
|
|
302
302
|
name: "My Conferences",
|
|
303
303
|
icon: urlActive === "my-conferences" ? React__default.createElement("img", {
|
|
304
|
-
|
|
304
|
+
style: {
|
|
305
|
+
imageRendering: "pixelated"
|
|
306
|
+
},
|
|
307
|
+
src: "/images/teacher-white.svg"
|
|
305
308
|
}) : React__default.createElement("img", {
|
|
306
|
-
|
|
309
|
+
style: {
|
|
310
|
+
imageRendering: "pixelated"
|
|
311
|
+
},
|
|
312
|
+
src: hoverConferences ? "/images/teacher-white.svg" : "/images/teacher.svg"
|
|
307
313
|
})
|
|
308
314
|
}, {
|
|
309
315
|
name: "Settings",
|
|
@@ -335,7 +341,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
335
341
|
className: classes.sectionDesktop
|
|
336
342
|
}, React__default.createElement("a", {
|
|
337
343
|
className: classes.textPrivacy,
|
|
338
|
-
href:
|
|
344
|
+
href: "https://marioframework.com/mario-for-me-privacy-policy/",
|
|
339
345
|
target: "blank"
|
|
340
346
|
}, "Privacy Policy"), React__default.createElement(IconButton, {
|
|
341
347
|
"aria-label": "show 17 new notifications",
|
|
@@ -393,7 +399,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
393
399
|
onClick: function onClick() {
|
|
394
400
|
return history.push(navigation.to);
|
|
395
401
|
},
|
|
396
|
-
className: classes.drawerItem + " " + (urlActive !=
|
|
402
|
+
className: classes.drawerItem + " " + (urlActive != "" && (navigation.to.includes(urlActive) || navigation.to.includes("my-student") && urlActive == "student-detail" || navigation.to.includes("my-one-to-one") && urlActive == "start-question" || navigation.to.includes("my-conferences") && urlActive == "start-conference") ? classes.drawerActive : "")
|
|
397
403
|
}, React__default.createElement(core.ListItemIcon, null, (_ICON_NAV$find = ICON_NAV.find(function (nav) {
|
|
398
404
|
return nav.name == navigation.name;
|
|
399
405
|
})) === null || _ICON_NAV$find === void 0 ? void 0 : _ICON_NAV$find.icon), React__default.createElement(core.ListItemText, null, React__default.createElement("span", {
|
|
@@ -417,7 +423,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
417
423
|
toggleSideBar();
|
|
418
424
|
history.push(navigation.to);
|
|
419
425
|
},
|
|
420
|
-
className: classes.drawerItem + " " + (urlActive !=
|
|
426
|
+
className: classes.drawerItem + " " + (urlActive != "" && (navigation.to.includes(urlActive) || navigation.to.includes("my-student") && urlActive == "student-detail") ? classes.drawerActive : "")
|
|
421
427
|
}, React__default.createElement(core.ListItemIcon, null, (_ICON_NAV$find2 = ICON_NAV.find(function (nav) {
|
|
422
428
|
return nav.name == navigation.name;
|
|
423
429
|
})) === null || _ICON_NAV$find2 === void 0 ? void 0 : _ICON_NAV$find2.icon), React__default.createElement(core.ListItemText, {
|
|
@@ -461,18 +467,18 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
461
467
|
display: "none"
|
|
462
468
|
}, _drawer),
|
|
463
469
|
textPrivacy: (_textPrivacy = {
|
|
464
|
-
display:
|
|
465
|
-
alignItems:
|
|
466
|
-
color:
|
|
467
|
-
textDecoration:
|
|
468
|
-
marginRight:
|
|
470
|
+
display: "flex",
|
|
471
|
+
alignItems: "center",
|
|
472
|
+
color: "#fff",
|
|
473
|
+
textDecoration: "none",
|
|
474
|
+
marginRight: "12px",
|
|
469
475
|
"&:hover": {
|
|
470
|
-
color:
|
|
471
|
-
textDecoration:
|
|
476
|
+
color: "#fff",
|
|
477
|
+
textDecoration: "none",
|
|
472
478
|
fontWeight: 700
|
|
473
479
|
}
|
|
474
480
|
}, _textPrivacy[theme.breakpoints.down(415)] = {
|
|
475
|
-
marginRight:
|
|
481
|
+
marginRight: "0px"
|
|
476
482
|
}, _textPrivacy),
|
|
477
483
|
drawerItem: {
|
|
478
484
|
height: "70px",
|