mario-core 1.1.52-es-layout → 1.1.53-es-layout

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
@@ -8295,6 +8295,11 @@ var getStaticFileUrl = function getStaticFileUrl(url) {
8295
8295
  if (url.startsWith("/")) return "" + (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + url;else return (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + "/" + url;
8296
8296
  };
8297
8297
 
8298
+ var getFileUrl = function getFileUrl(fileName) {
8299
+ if (!fileName || !fileName.trim()) return "";
8300
+ return BASE_URL + "/api/file/viewer?key=" + fileName;
8301
+ };
8302
+
8298
8303
  var schema = yup.object({
8299
8304
  email: yup.string().email("Email is invalid").required("Email is required"),
8300
8305
  password: yup.string().required("Password is required"),
@@ -8365,6 +8370,7 @@ var BlockLogin = function BlockLogin(_ref) {
8365
8370
  }
8366
8371
  };
8367
8372
 
8373
+ console.log(school);
8368
8374
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(formik.Formik, {
8369
8375
  initialValues: defaultInfo,
8370
8376
  enableReinitialize: true,
@@ -8404,7 +8410,7 @@ var BlockLogin = function BlockLogin(_ref) {
8404
8410
  }, React__default.createElement("div", {
8405
8411
  className: "d-flex align-items-center mb-4"
8406
8412
  }, React__default.createElement("img", {
8407
- src: "" + getStaticFileUrl("/images/isb-icon.png"),
8413
+ src: school.schoolLogo ? getFileUrl("" + school.schoolLogo) : "" + getStaticFileUrl("/images/mario-logo.png"),
8408
8414
  className: styles["school-icon"] + " mr-3"
8409
8415
  }), React__default.createElement("p", {
8410
8416
  className: styles["school-name"] + " mb-0"
@@ -9261,11 +9267,6 @@ var NotificationButton = function NotificationButton(_ref) {
9261
9267
  }, unReadNotification)));
9262
9268
  };
9263
9269
 
9264
- var getFileUrl = function getFileUrl(fileName) {
9265
- if (!fileName || !fileName.trim()) return "";
9266
- return BASE_URL + "/api/file/viewer?key=" + fileName;
9267
- };
9268
-
9269
9270
  var DEFAULT_USER_AVATAR = "/avatars/default-avatar.png";
9270
9271
  var ADMIN_ROLE = "Admin";
9271
9272
  var TEACHER_ROLE = "Teacher";
@@ -9491,6 +9492,7 @@ var TheContent = function TheContent(_ref) {
9491
9492
  var pathname = location.pathname;
9492
9493
  var dashboard = !pathname.includes("/admin") ? "box-container" : "";
9493
9494
  var padding = pathname.includes("/admin") ? "pt-3" : "";
9495
+ console.log(padding);
9494
9496
  return React__default.createElement("main", {
9495
9497
  className: "c-main " + dashboard
9496
9498
  }, React__default.createElement(react.CContainer, {