mario-teacher-student-client 1.4.2 → 1.4.4
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 +4 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12735,13 +12735,12 @@ var InformationUser = function InformationUser(_ref) {
|
|
|
12735
12735
|
var informationUser = _ref.informationUser,
|
|
12736
12736
|
isTeacher = _ref.isTeacher,
|
|
12737
12737
|
clickOpenProfileDialog = _ref.clickOpenProfileDialog;
|
|
12738
|
-
var renderAvatar = isTeacher ? marioCore.getFileUrl(informationUser === null || informationUser === void 0 ? void 0 : informationUser.studentProfileImage) : informationUser === null || informationUser === void 0 ? void 0 : informationUser.studentProfileImage;
|
|
12739
12738
|
return React__default.createElement("div", {
|
|
12740
12739
|
className: styles$6["box-infor"]
|
|
12741
12740
|
}, React__default.createElement("div", {
|
|
12742
12741
|
className: styles$6["infor-image"]
|
|
12743
12742
|
}, React__default.createElement("img", {
|
|
12744
|
-
src: !!(informationUser !== null && informationUser !== void 0 && informationUser.studentProfileImage) ?
|
|
12743
|
+
src: !!(informationUser !== null && informationUser !== void 0 && informationUser.studentProfileImage) ? informationUser === null || informationUser === void 0 ? void 0 : informationUser.studentProfileImage : "/images/image-default.png",
|
|
12745
12744
|
alt: ""
|
|
12746
12745
|
})), React__default.createElement("div", {
|
|
12747
12746
|
className: styles$6["infor-text"]
|
|
@@ -13205,8 +13204,6 @@ var StartReflection = function StartReflection() {
|
|
|
13205
13204
|
}), React__default.createElement("span", null, " Submit ")))));
|
|
13206
13205
|
};
|
|
13207
13206
|
|
|
13208
|
-
var DEFAULT_IMAGE = "/images/image-default.png";
|
|
13209
|
-
|
|
13210
13207
|
var useResultReflection = function useResultReflection() {
|
|
13211
13208
|
var dispatch = reactRedux.useDispatch();
|
|
13212
13209
|
|
|
@@ -13251,7 +13248,7 @@ var useResultReflection = function useResultReflection() {
|
|
|
13251
13248
|
return Promise.resolve(request).then(function (res) {
|
|
13252
13249
|
var body = {
|
|
13253
13250
|
name: isTeacher ? res.data.studentName : res.data.teacherName,
|
|
13254
|
-
studentProfileImage: !isTeacher ? res.data.teacherAvatar :
|
|
13251
|
+
studentProfileImage: !isTeacher ? res.data.teacherAvatar : res.data.studentAvatar,
|
|
13255
13252
|
time: res.data.time,
|
|
13256
13253
|
classType: res.data.classType,
|
|
13257
13254
|
studentName: res.data.studentName,
|
|
@@ -17804,7 +17801,7 @@ var useUpdateProfile = function useUpdateProfile(studentId) {
|
|
|
17804
17801
|
var _res$data;
|
|
17805
17802
|
|
|
17806
17803
|
var imageUrl = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.key;
|
|
17807
|
-
data.
|
|
17804
|
+
data.profileImage = imageUrl;
|
|
17808
17805
|
});
|
|
17809
17806
|
}
|
|
17810
17807
|
}();
|
|
@@ -18138,7 +18135,7 @@ var useCreateStudent = function useCreateStudent() {
|
|
|
18138
18135
|
} catch (e) {
|
|
18139
18136
|
return Promise.reject(e);
|
|
18140
18137
|
}
|
|
18141
|
-
}, []);
|
|
18138
|
+
}, [file]);
|
|
18142
18139
|
return {
|
|
18143
18140
|
createStudent: createStudent,
|
|
18144
18141
|
setFile: setFile
|