mario-teacher-student-client 1.9.3 → 1.9.7
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/components/Input/InputComponent.d.ts +8 -0
- package/dist/components/Input/TextAreaComponent.d.ts +8 -0
- package/dist/containers/LearningPlan/views/LearningPlan.d.ts +3 -0
- package/dist/index.css +11 -4
- package/dist/index.js +66 -44
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +66 -44
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -62,6 +62,8 @@
|
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: row;
|
|
64
64
|
align-items: center; }
|
|
65
|
+
._1bTW5 ._2T6Ym {
|
|
66
|
+
margin-right: 20px; }
|
|
65
67
|
._1bTW5 ._1gs0Z {
|
|
66
68
|
font-size: 14px;
|
|
67
69
|
font-weight: bold;
|
|
@@ -2664,10 +2666,14 @@ h2._1OAmb {
|
|
|
2664
2666
|
position: absolute;
|
|
2665
2667
|
align-items: center;
|
|
2666
2668
|
top: 19px;
|
|
2667
|
-
left:
|
|
2669
|
+
left: 22%; }
|
|
2668
2670
|
._1clLN ._1RV8f {
|
|
2669
2671
|
display: flex;
|
|
2670
|
-
align-items: center;
|
|
2672
|
+
align-items: center;
|
|
2673
|
+
margin-top: -7px; }
|
|
2674
|
+
@media only screen and (max-width: 1600px) {
|
|
2675
|
+
._1clLN ._1RV8f {
|
|
2676
|
+
margin-left: -9px; } }
|
|
2671
2677
|
._1clLN ._1RV8f span {
|
|
2672
2678
|
font-weight: bold;
|
|
2673
2679
|
font-size: 14px;
|
|
@@ -2851,7 +2857,7 @@ h2._1OAmb {
|
|
|
2851
2857
|
._2-3s2 ._3xdp_ {
|
|
2852
2858
|
display: inline;
|
|
2853
2859
|
float: left;
|
|
2854
|
-
margin-top:
|
|
2860
|
+
margin-top: 6px; }
|
|
2855
2861
|
|
|
2856
2862
|
._1m4nA:nth-of-type(odd) {
|
|
2857
2863
|
background-color: #f9f9f9; }
|
|
@@ -4610,7 +4616,8 @@ h2._1KpSK {
|
|
|
4610
4616
|
._1WNMT ._3BU0L {
|
|
4611
4617
|
display: flex;
|
|
4612
4618
|
align-items: center;
|
|
4613
|
-
margin-right: 25px;
|
|
4619
|
+
margin-right: 25px;
|
|
4620
|
+
margin-left: 18px; }
|
|
4614
4621
|
._1WNMT ._3BU0L ._1N_R5 {
|
|
4615
4622
|
margin-right: 10px;
|
|
4616
4623
|
margin-top: -4px; }
|
package/dist/index.js
CHANGED
|
@@ -102,7 +102,7 @@ var getStudentSimpleProfile = function getStudentSimpleProfile() {
|
|
|
102
102
|
return marioCore.api.get("" + STUDENT_PROFILE);
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
var styles = {"reset-the-content":"_1zJw3","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","form-title":"_qDlsm","title":"_g-p72","description":"_2U60d","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg"};
|
|
105
|
+
var styles = {"reset-the-content":"_1zJw3","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","margin-right":"_2T6Ym","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","form-title":"_qDlsm","title":"_g-p72","description":"_2U60d","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg"};
|
|
106
106
|
|
|
107
107
|
function toVal(mix) {
|
|
108
108
|
var k, y, str='';
|
|
@@ -155,6 +155,7 @@ var NEW_NOTIFICATION = "NEW_NOTIFICATION";
|
|
|
155
155
|
var drawerWidth = 240;
|
|
156
156
|
var headerHeightDesktop = 64;
|
|
157
157
|
var headerHeightMobile = 55;
|
|
158
|
+
var headerHeightScroll = 0;
|
|
158
159
|
var LOGO = "/images/logo-new.png";
|
|
159
160
|
var ICON_NAV = [{
|
|
160
161
|
name: "Home",
|
|
@@ -368,13 +369,15 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
368
369
|
}, !!navigations && navigations.map(function (navigation) {
|
|
369
370
|
var _ICON_NAV$find;
|
|
370
371
|
|
|
372
|
+
console.log(navigation.to);
|
|
373
|
+
console.log(urlActive);
|
|
371
374
|
return React__default.createElement(core.ListItem, {
|
|
372
375
|
button: true,
|
|
373
376
|
key: navigation === null || navigation === void 0 ? void 0 : navigation.name,
|
|
374
377
|
onClick: function onClick() {
|
|
375
378
|
return history.push(navigation.to);
|
|
376
379
|
},
|
|
377
|
-
className: classes.drawerItem + " " + (urlActive != '' && (navigation.to.includes(urlActive) || navigation.to.includes('my-student') && urlActive == 'student-detail') ? classes.drawerActive : "")
|
|
380
|
+
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 : "")
|
|
378
381
|
}, React__default.createElement(core.ListItemIcon, null, (_ICON_NAV$find = ICON_NAV.find(function (nav) {
|
|
379
382
|
return nav.name == navigation.name;
|
|
380
383
|
})) === null || _ICON_NAV$find === void 0 ? void 0 : _ICON_NAV$find.icon), React__default.createElement(core.ListItemText, null, React__default.createElement("span", {
|
|
@@ -409,7 +412,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
409
412
|
}, children));
|
|
410
413
|
};
|
|
411
414
|
var useStyles = styles$b.makeStyles(function (theme) {
|
|
412
|
-
var _drawer, _drawerPaper, _drawerPaperMobile, _content, _contentShift;
|
|
415
|
+
var _drawer, _textPrivacy, _drawerPaper, _drawerPaperMobile, _content, _contentShift;
|
|
413
416
|
|
|
414
417
|
return {
|
|
415
418
|
grow: {
|
|
@@ -441,7 +444,7 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
441
444
|
}, _drawer[theme.breakpoints.down(600)] = {
|
|
442
445
|
display: "none"
|
|
443
446
|
}, _drawer),
|
|
444
|
-
textPrivacy: {
|
|
447
|
+
textPrivacy: (_textPrivacy = {
|
|
445
448
|
display: 'flex',
|
|
446
449
|
alignItems: 'center',
|
|
447
450
|
color: '#fff',
|
|
@@ -451,7 +454,9 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
451
454
|
color: '#fff',
|
|
452
455
|
textDecoration: 'none'
|
|
453
456
|
}
|
|
454
|
-
},
|
|
457
|
+
}, _textPrivacy[theme.breakpoints.down(415)] = {
|
|
458
|
+
marginRight: '0px'
|
|
459
|
+
}, _textPrivacy),
|
|
455
460
|
drawerItem: {
|
|
456
461
|
height: "70px",
|
|
457
462
|
display: "flex",
|
|
@@ -480,11 +485,15 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
480
485
|
zIndex: 900
|
|
481
486
|
}, _drawerPaper[theme.breakpoints.down(600)] = {
|
|
482
487
|
paddingTop: headerHeightMobile
|
|
488
|
+
}, _drawerPaper[theme.breakpoints.down(415)] = {
|
|
489
|
+
paddingTop: headerHeightScroll
|
|
483
490
|
}, _drawerPaper),
|
|
484
491
|
drawerPaperMobile: (_drawerPaperMobile = {
|
|
485
492
|
paddingTop: headerHeightDesktop
|
|
486
493
|
}, _drawerPaperMobile[theme.breakpoints.down(600)] = {
|
|
487
494
|
paddingTop: headerHeightMobile
|
|
495
|
+
}, _drawerPaperMobile[theme.breakpoints.down(415)] = {
|
|
496
|
+
paddingTop: headerHeightScroll
|
|
488
497
|
}, _drawerPaperMobile),
|
|
489
498
|
drawerActive: {
|
|
490
499
|
background: "#156DA1",
|
|
@@ -5680,7 +5689,7 @@ var SliderComponent = function SliderComponent(_ref) {
|
|
|
5680
5689
|
return React__default.createElement("div", {
|
|
5681
5690
|
className: styles["box-slider"]
|
|
5682
5691
|
}, React__default.createElement("p", {
|
|
5683
|
-
className: styles["slider-text"]
|
|
5692
|
+
className: styles["slider-text"] + " " + styles["margin-right"]
|
|
5684
5693
|
}, minText), React__default.createElement(PrettoSlider, {
|
|
5685
5694
|
valueLabelDisplay: "auto",
|
|
5686
5695
|
"aria-label": "pretto slider",
|
|
@@ -7514,7 +7523,6 @@ var SelectQuestionNodes = function SelectQuestionNodes(props) {
|
|
|
7514
7523
|
}
|
|
7515
7524
|
}, React__default.createElement(lab.Autocomplete, {
|
|
7516
7525
|
className: "" + stylesOto["select-category"],
|
|
7517
|
-
freeSolo: true,
|
|
7518
7526
|
id: "free-solo-2-demo",
|
|
7519
7527
|
disableClearable: true,
|
|
7520
7528
|
options: categories,
|
|
@@ -7537,12 +7545,6 @@ var SelectQuestionNodes = function SelectQuestionNodes(props) {
|
|
|
7537
7545
|
})
|
|
7538
7546
|
}));
|
|
7539
7547
|
}
|
|
7540
|
-
}), React__default.createElement(ArrowDropDownIcon, {
|
|
7541
|
-
style: {
|
|
7542
|
-
position: "absolute",
|
|
7543
|
-
right: "10px",
|
|
7544
|
-
top: "35px"
|
|
7545
|
-
}
|
|
7546
7548
|
}))), React__default.createElement("div", null, React__default.createElement("div", {
|
|
7547
7549
|
className: "" + stylesOto["section-header"]
|
|
7548
7550
|
}, "Select question"), React__default.createElement("div", {
|
|
@@ -12481,7 +12483,7 @@ var Overview = function Overview(props) {
|
|
|
12481
12483
|
} else {
|
|
12482
12484
|
dispatch(marioCore.setAlert({
|
|
12483
12485
|
type: "danger",
|
|
12484
|
-
message: "
|
|
12486
|
+
message: "Invalid date range"
|
|
12485
12487
|
}));
|
|
12486
12488
|
}
|
|
12487
12489
|
};
|
|
@@ -12500,7 +12502,7 @@ var Overview = function Overview(props) {
|
|
|
12500
12502
|
} else {
|
|
12501
12503
|
dispatch(marioCore.setAlert({
|
|
12502
12504
|
type: "danger",
|
|
12503
|
-
message: "
|
|
12505
|
+
message: "Invalid date range"
|
|
12504
12506
|
}));
|
|
12505
12507
|
}
|
|
12506
12508
|
};
|
|
@@ -12991,7 +12993,7 @@ var OneToOne = function OneToOne() {
|
|
|
12991
12993
|
marginLeft: "5px"
|
|
12992
12994
|
}
|
|
12993
12995
|
}) : ""))), React__default.createElement(core.TableBody, null, !!sessionData && (sessionData === null || sessionData === void 0 ? void 0 : sessionData.items).length > 0 ? sessionData === null || sessionData === void 0 ? void 0 : (_sessionData$items = sessionData.items) === null || _sessionData$items === void 0 ? void 0 : _sessionData$items.map(function (row) {
|
|
12994
|
-
var _row$studentProfile;
|
|
12996
|
+
var _row$studentProfile, _row$studentProfile2;
|
|
12995
12997
|
|
|
12996
12998
|
var timeStart = marioCore.utcToLocalTime(row === null || row === void 0 ? void 0 : row.startTime, "Do MMMM yyyy - hh:mm A").toString();
|
|
12997
12999
|
var timeSplitArray = timeStart.split(" - ");
|
|
@@ -13010,7 +13012,7 @@ var OneToOne = function OneToOne() {
|
|
|
13010
13012
|
align: "left",
|
|
13011
13013
|
className: "" + styles$4["row_name"]
|
|
13012
13014
|
}, React__default.createElement("img", {
|
|
13013
|
-
src: !!row.studentProfile.avatar ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$
|
|
13015
|
+
src: !!((_row$studentProfile = row.studentProfile) !== null && _row$studentProfile !== void 0 && _row$studentProfile.avatar) ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$studentProfile2 = row.studentProfile) === null || _row$studentProfile2 === void 0 ? void 0 : _row$studentProfile2.avatar) : DEFAULT_USER_AVATAR$7,
|
|
13014
13016
|
alt: "",
|
|
13015
13017
|
className: "" + styles$4["avatar_user"]
|
|
13016
13018
|
}), (row === null || row === void 0 ? void 0 : row.studentProfile.name).length > 12 ? (row === null || row === void 0 ? void 0 : row.studentProfile.name).slice(0, 12).concat("...") : row === null || row === void 0 ? void 0 : row.studentProfile.name), React__default.createElement(core.TableCell, {
|
|
@@ -13057,7 +13059,7 @@ var OneToOne = function OneToOne() {
|
|
|
13057
13059
|
}, React__default.createElement("div", {
|
|
13058
13060
|
className: "" + styles$4["list-title"]
|
|
13059
13061
|
}, "All"), !!sessionData && (sessionData === null || sessionData === void 0 ? void 0 : sessionData.items).length > 0 ? sessionData === null || sessionData === void 0 ? void 0 : (_sessionData$items2 = sessionData.items) === null || _sessionData$items2 === void 0 ? void 0 : _sessionData$items2.map(function (row) {
|
|
13060
|
-
var _row$
|
|
13062
|
+
var _row$studentProfile3, _row$studentProfile4;
|
|
13061
13063
|
|
|
13062
13064
|
var timeStart = marioCore.utcToLocalTime(row.startTime, "Do MMMM yyyy - hh:mm A").toString();
|
|
13063
13065
|
var timeSplitArray = timeStart.split(" - ");
|
|
@@ -13066,7 +13068,7 @@ var OneToOne = function OneToOne() {
|
|
|
13066
13068
|
}, React__default.createElement("div", {
|
|
13067
13069
|
className: "" + styles$4["avatar"]
|
|
13068
13070
|
}, React__default.createElement("img", {
|
|
13069
|
-
src: !!row.studentProfile.avatar ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$
|
|
13071
|
+
src: !!row.studentProfile.avatar ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$studentProfile3 = row.studentProfile) === null || _row$studentProfile3 === void 0 ? void 0 : _row$studentProfile3.avatar) : DEFAULT_USER_AVATAR$7,
|
|
13070
13072
|
alt: "",
|
|
13071
13073
|
className: "" + styles$4["avatar_user"]
|
|
13072
13074
|
})), React__default.createElement("div", {
|
|
@@ -13079,7 +13081,7 @@ var OneToOne = function OneToOne() {
|
|
|
13079
13081
|
className: "" + styles$4["time-Hours-Minute"]
|
|
13080
13082
|
}, " ", "-", " ", timeSplitArray[1]))), React__default.createElement("div", null, React__default.createElement("p", {
|
|
13081
13083
|
className: "" + styles$4["name"]
|
|
13082
|
-
}, row === null || row === void 0 ? void 0 : (_row$
|
|
13084
|
+
}, row === null || row === void 0 ? void 0 : (_row$studentProfile4 = row.studentProfile) === null || _row$studentProfile4 === void 0 ? void 0 : _row$studentProfile4.name), React__default.createElement("p", {
|
|
13083
13085
|
className: "" + styles$4["classes"]
|
|
13084
13086
|
}, !!row.gradeLevel && row.gradeLevel), React__default.createElement("div", {
|
|
13085
13087
|
style: {
|
|
@@ -13889,7 +13891,7 @@ var ClassReflection = function ClassReflection() {
|
|
|
13889
13891
|
marginRight: "10px"
|
|
13890
13892
|
},
|
|
13891
13893
|
className: myStudent["reflection-avatar"] + " " + myStudent["avatar_user"],
|
|
13892
|
-
src: !!row.teacherAvatar ? row.teacherAvatar : DEFAULT_USER_AVATAR$9
|
|
13894
|
+
src: !!(row !== null && row !== void 0 && row.teacherAvatar) ? row === null || row === void 0 ? void 0 : row.teacherAvatar : DEFAULT_USER_AVATAR$9
|
|
13893
13895
|
}), row.teacherName)), React__default.createElement(core.TableCell, {
|
|
13894
13896
|
align: "left",
|
|
13895
13897
|
style: {
|
|
@@ -13949,7 +13951,7 @@ var ClassReflection = function ClassReflection() {
|
|
|
13949
13951
|
marginRight: "10px"
|
|
13950
13952
|
},
|
|
13951
13953
|
className: myStudent["reflection-avatar"] + " " + myStudent["avatar_user"],
|
|
13952
|
-
src: !!row.teacherAvatar ? row.teacherAvatar : DEFAULT_USER_AVATAR$9
|
|
13954
|
+
src: !!(row !== null && row !== void 0 && row.teacherAvatar) ? row === null || row === void 0 ? void 0 : row.teacherAvatar : DEFAULT_USER_AVATAR$9
|
|
13953
13955
|
}), React__default.createElement(core.Typography, {
|
|
13954
13956
|
className: "" + myStudent["reflection-name"]
|
|
13955
13957
|
}, row.teacherName)), React__default.createElement(core.Grid, {
|
|
@@ -19473,6 +19475,9 @@ var NewLearningPlan = function NewLearningPlan() {
|
|
|
19473
19475
|
!learningData ? createNewLearningPlan(data) : editLearning(data);
|
|
19474
19476
|
}
|
|
19475
19477
|
}, [data]);
|
|
19478
|
+
React.useEffect(function () {
|
|
19479
|
+
!!learningData ? document.title = "Edit IEP" : document.title = "New IEP";
|
|
19480
|
+
});
|
|
19476
19481
|
|
|
19477
19482
|
var CustomInput = function CustomInput(props) {
|
|
19478
19483
|
return React__default.createElement("div", {
|
|
@@ -21302,9 +21307,13 @@ var useSettingPage = function useSettingPage() {
|
|
|
21302
21307
|
|
|
21303
21308
|
var getSettingPage = function getSettingPage() {
|
|
21304
21309
|
try {
|
|
21310
|
+
var _temp3 = function _temp3() {
|
|
21311
|
+
dispatch(marioCore.setLoading(false));
|
|
21312
|
+
};
|
|
21313
|
+
|
|
21305
21314
|
dispatch(marioCore.setLoading(true));
|
|
21306
21315
|
|
|
21307
|
-
var
|
|
21316
|
+
var _temp4 = _catch(function () {
|
|
21308
21317
|
return Promise.resolve(getApiSettingPage()).then(function (res) {
|
|
21309
21318
|
var _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7;
|
|
21310
21319
|
|
|
@@ -21315,7 +21324,6 @@ var useSettingPage = function useSettingPage() {
|
|
|
21315
21324
|
IsReceiveNotificationBookedSession: (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.isReceiveNotificationBookedSession,
|
|
21316
21325
|
IsReceiveNotificationPrebookedSession: (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.isReceiveNotificationPrebookedSession
|
|
21317
21326
|
});
|
|
21318
|
-
dispatch(marioCore.setLoading(false));
|
|
21319
21327
|
});
|
|
21320
21328
|
}, function (err) {
|
|
21321
21329
|
var _err$response, _err$response$data;
|
|
@@ -21326,7 +21334,7 @@ var useSettingPage = function useSettingPage() {
|
|
|
21326
21334
|
}));
|
|
21327
21335
|
});
|
|
21328
21336
|
|
|
21329
|
-
return Promise.resolve(
|
|
21337
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
21330
21338
|
} catch (e) {
|
|
21331
21339
|
return Promise.reject(e);
|
|
21332
21340
|
}
|
|
@@ -21352,26 +21360,43 @@ var useSettingPage = function useSettingPage() {
|
|
|
21352
21360
|
|
|
21353
21361
|
var updateSettingPage = function updateSettingPage(data) {
|
|
21354
21362
|
try {
|
|
21355
|
-
|
|
21363
|
+
var timeStart = new Date(dataSetting.MuteNotificationStartTime).getTime();
|
|
21364
|
+
var timeEnd = new Date(dataSetting.MuteNotificationEndTime).getTime();
|
|
21356
21365
|
|
|
21357
|
-
var
|
|
21358
|
-
|
|
21359
|
-
dispatch(marioCore.setLoading(false));
|
|
21366
|
+
var _temp8 = function () {
|
|
21367
|
+
if (timeStart >= timeEnd) {
|
|
21360
21368
|
dispatch(marioCore.setAlert({
|
|
21361
|
-
type: "
|
|
21362
|
-
message: "
|
|
21369
|
+
type: "danger",
|
|
21370
|
+
message: "Invalid date range"
|
|
21363
21371
|
}));
|
|
21364
|
-
}
|
|
21365
|
-
|
|
21366
|
-
|
|
21372
|
+
} else {
|
|
21373
|
+
var _temp9 = function _temp9() {
|
|
21374
|
+
dispatch(marioCore.setLoading(false));
|
|
21375
|
+
};
|
|
21367
21376
|
|
|
21368
|
-
|
|
21369
|
-
type: "danger",
|
|
21370
|
-
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || err.message
|
|
21371
|
-
}));
|
|
21372
|
-
});
|
|
21377
|
+
dispatch(marioCore.setLoading(true));
|
|
21373
21378
|
|
|
21374
|
-
|
|
21379
|
+
var _temp10 = _catch(function () {
|
|
21380
|
+
return Promise.resolve(updateApiSettingPage(data)).then(function () {
|
|
21381
|
+
dispatch(marioCore.setAlert({
|
|
21382
|
+
type: "success",
|
|
21383
|
+
message: "Setting is updated successfully"
|
|
21384
|
+
}));
|
|
21385
|
+
});
|
|
21386
|
+
}, function (err) {
|
|
21387
|
+
var _err$response2, _err$response2$data;
|
|
21388
|
+
|
|
21389
|
+
dispatch(marioCore.setAlert({
|
|
21390
|
+
type: "danger",
|
|
21391
|
+
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || err.message
|
|
21392
|
+
}));
|
|
21393
|
+
});
|
|
21394
|
+
|
|
21395
|
+
return _temp10 && _temp10.then ? _temp10.then(_temp9) : _temp9(_temp10);
|
|
21396
|
+
}
|
|
21397
|
+
}();
|
|
21398
|
+
|
|
21399
|
+
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
|
|
21375
21400
|
} catch (e) {
|
|
21376
21401
|
return Promise.reject(e);
|
|
21377
21402
|
}
|
|
@@ -21412,7 +21437,7 @@ var useStyles$8 = styles$b.makeStyles(function (theme) {
|
|
|
21412
21437
|
marginTop: "10px"
|
|
21413
21438
|
},
|
|
21414
21439
|
Button: {
|
|
21415
|
-
marginTop: "
|
|
21440
|
+
marginTop: "30px"
|
|
21416
21441
|
}
|
|
21417
21442
|
});
|
|
21418
21443
|
});
|
|
@@ -21454,7 +21479,6 @@ function NotificationsPage() {
|
|
|
21454
21479
|
style: {
|
|
21455
21480
|
display: "flex",
|
|
21456
21481
|
justifyContent: "space-between",
|
|
21457
|
-
marginBottom: "15px",
|
|
21458
21482
|
alignItems: "center"
|
|
21459
21483
|
}
|
|
21460
21484
|
}, React__default.createElement("p", {
|
|
@@ -21471,7 +21495,6 @@ function NotificationsPage() {
|
|
|
21471
21495
|
style: {
|
|
21472
21496
|
display: "flex",
|
|
21473
21497
|
justifyContent: "space-between",
|
|
21474
|
-
marginBottom: "15px",
|
|
21475
21498
|
alignItems: "center"
|
|
21476
21499
|
}
|
|
21477
21500
|
}, React__default.createElement("p", {
|
|
@@ -21488,7 +21511,6 @@ function NotificationsPage() {
|
|
|
21488
21511
|
style: {
|
|
21489
21512
|
display: "flex",
|
|
21490
21513
|
justifyContent: "space-between",
|
|
21491
|
-
marginBottom: "15px",
|
|
21492
21514
|
alignItems: "center"
|
|
21493
21515
|
}
|
|
21494
21516
|
}, React__default.createElement("p", {
|