mario-core 2.9.302-release → 2.9.304-release

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.
@@ -37687,7 +37687,7 @@ var BlockLogin = function BlockLogin(_ref) {
37687
37687
  }
37688
37688
  }, React.createElement("img", {
37689
37689
  src: "images/class-link-icon.png"
37690
- }), React.createElement("p", null, "Sign-in with ClassLink"))))));
37690
+ }), React.createElement("p", null, "SIGN IN WITH CLASSLINK"))))));
37691
37691
  }), isLoginGoogle && React.createElement(BlockSelectTeacher$1, {
37692
37692
  onSubmit: function onSubmit(e) {
37693
37693
  return submitLogin(e, clickHandler);
@@ -37881,14 +37881,6 @@ var useForgotPassword = function useForgotPassword() {
37881
37881
  };
37882
37882
  };
37883
37883
 
37884
- var getStaticFileUrl = function getStaticFileUrl(url) {
37885
- var STAGE_DOMAIN = "https://stage2.marioforme.com";
37886
- var isStage = STAGE_DOMAIN === location.origin;
37887
- if (!url) return "";
37888
- if (isLocalhost && !isStage || url.startsWith("http")) return url;
37889
- if (url.startsWith("/")) return "" + (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + url;else return (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + "/" + url;
37890
- };
37891
-
37892
37884
  var initialValues = {
37893
37885
  email: "",
37894
37886
  captcha: ""
@@ -37935,7 +37927,7 @@ var BlockForgetPassword = function BlockForgetPassword(_ref) {
37935
37927
  }, React.createElement("div", {
37936
37928
  className: "d-flex align-items-center mb-4"
37937
37929
  }, React.createElement("img", {
37938
- src: "" + getStaticFileUrl("/images/isb-icon.png"),
37930
+ src: school.schoolLogo,
37939
37931
  className: styles["school-icon"] + " mr-3"
37940
37932
  }), React.createElement("p", {
37941
37933
  className: styles["school-name"] + " mb-0"
@@ -37971,6 +37963,14 @@ var BlockForgetPassword = function BlockForgetPassword(_ref) {
37971
37963
  });
37972
37964
  };
37973
37965
 
37966
+ var getStaticFileUrl = function getStaticFileUrl(url) {
37967
+ var STAGE_DOMAIN = "https://stage2.marioforme.com";
37968
+ var isStage = STAGE_DOMAIN === location.origin;
37969
+ if (!url) return "";
37970
+ if (isLocalhost && !isStage || url.startsWith("http")) return url;
37971
+ if (url.startsWith("/")) return "" + (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + url;else return (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + "/" + url;
37972
+ };
37973
+
37974
37974
  var resetPasswordSchema = object({
37975
37975
  password: string().required("New password is required"),
37976
37976
  reEnterPassword: string().required("Please re-enter new password").test("matching", "Passwords do not match", function () {
@@ -38543,7 +38543,6 @@ var useLogin = function useLogin() {
38543
38543
  var _temp30 = _catch(function () {
38544
38544
  return Promise.resolve(getSchoolSettings()).then(function (res) {
38545
38545
  dispatch(setSandboxMode(res.data.isSandboxMode));
38546
- setSchool(res.data);
38547
38546
  });
38548
38547
  }, function (err) {
38549
38548
  console.error(err);