mario-teacher-student-client 2.1.124-admin → 2.1.126-admin

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 CHANGED
@@ -3982,10 +3982,12 @@ var getInformationStudent = function getInformationStudent(studentId) {
3982
3982
  }
3983
3983
  });
3984
3984
  };
3985
- var getDashboardOverview = function getDashboardOverview(studentId) {
3985
+ var getDashboardOverview = function getDashboardOverview(studentId, startDate, endDate) {
3986
3986
  return marioCore.api.get(STUDENT_URL + "/overview-dashboard", {
3987
3987
  params: {
3988
- studentId: studentId
3988
+ studentId: studentId,
3989
+ startDate: startDate,
3990
+ endDate: endDate
3989
3991
  }
3990
3992
  });
3991
3993
  };
@@ -20266,7 +20268,7 @@ var useOverview = function useOverview(studentId) {
20266
20268
  dispatch(marioCore.setLoading(true));
20267
20269
 
20268
20270
  var _temp8 = _catch(function () {
20269
- return Promise.resolve(getDashboardOverview(studentId)).then(function (res) {
20271
+ return Promise.resolve(getDashboardOverview(studentId, filterDateChart.startDate || DEFAULT_START_DATE, filterDateChart.endDate || DEFAULT_END_DATE)).then(function (res) {
20270
20272
  var body = {
20271
20273
  totalConference: res.data.totalConference,
20272
20274
  totalOneToOne: res.data.totalOneToOne,
@@ -20289,7 +20291,7 @@ var useOverview = function useOverview(studentId) {
20289
20291
  } catch (e) {
20290
20292
  return Promise.reject(e);
20291
20293
  }
20292
- }, [studentId]);
20294
+ }, [studentId, filterDateChart]);
20293
20295
  var getInformationWellbeing = React.useCallback(function (type, startDate, endDate) {
20294
20296
  try {
20295
20297
  var _temp11 = function _temp11() {
@@ -20412,7 +20414,7 @@ var useOverview = function useOverview(studentId) {
20412
20414
  getPartnerProfileSelector();
20413
20415
  getInformationSession();
20414
20416
  }
20415
- }, []);
20417
+ }, [filterDateChart]);
20416
20418
  return {
20417
20419
  isAdmin: isAdmin,
20418
20420
  partnerData: partnerData,
@@ -29928,7 +29930,9 @@ var Overview = function Overview(props) {
29928
29930
  },
29929
29931
  KeyboardButtonProps: {
29930
29932
  "aria-label": "change date"
29931
- }
29933
+ },
29934
+ minDate: filterDateChart.startDate,
29935
+ maxDate: filterDateChart.endDate
29932
29936
  })), React__default.createElement("div", {
29933
29937
  className: "" + styles$7["date-time-end"]
29934
29938
  }, React__default.createElement("p", {