touchstudy-core 0.1.36 → 0.1.37

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.
@@ -881,7 +881,7 @@ var switchAcademy = function switchAcademy(academyId) {
881
881
  };
882
882
 
883
883
  var LayoutContext = function LayoutContext(_ref) {
884
- var _currentPusher$connec, _currentPusher$connec3;
884
+ var _currentPusher$connec2;
885
885
  var children = _ref.children,
886
886
  role = _ref.role,
887
887
  _ref$pusherRegisterUr = _ref.pusherRegisterUrls,
@@ -973,14 +973,9 @@ var LayoutContext = function LayoutContext(_ref) {
973
973
  return Promise.reject(e);
974
974
  }
975
975
  };
976
- console.log({
977
- connection: currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec = currentPusher.connection) === null || _currentPusher$connec === void 0 ? void 0 : _currentPusher$connec.state,
978
- pusherRegisterUrls: pusherRegisterUrls,
979
- pathname: pathname
980
- });
981
976
  var registerPusher = useCallback(function () {
982
977
  if (pusherRegisterUrls.includes(pathname.toLocaleLowerCase())) {
983
- var _currentPusher$connec2;
978
+ var _currentPusher$connec;
984
979
  if (academyDomain && academyDomain !== (concurrentConnectionPusher === null || concurrentConnectionPusher === void 0 ? void 0 : concurrentConnectionPusher.academyDomain) && isReadyRegisterPusher) {
985
980
  var _headers;
986
981
  if (currentPusher) {
@@ -1001,7 +996,7 @@ var LayoutContext = function LayoutContext(_ref) {
1001
996
  pusher: pusher,
1002
997
  academyDomain: academyDomain
1003
998
  }));
1004
- } else if ((currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec2 = currentPusher.connection) === null || _currentPusher$connec2 === void 0 ? void 0 : _currentPusher$connec2.state) === "disconnected") {
999
+ } else if ((currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec = currentPusher.connection) === null || _currentPusher$connec === void 0 ? void 0 : _currentPusher$connec.state) === "disconnected") {
1005
1000
  currentPusher.connect();
1006
1001
  }
1007
1002
  }
@@ -1017,7 +1012,7 @@ var LayoutContext = function LayoutContext(_ref) {
1017
1012
  if (!pusherRegisterUrls.includes(pathname.toLocaleLowerCase()) && isReadyRegisterPusher) {
1018
1013
  dispatch(setReadyRegisterPusher(false));
1019
1014
  }
1020
- }, [pusherRegisterUrls.join(","), academyDomain, pathname, isReadyRegisterPusher, currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec3 = currentPusher.connection) === null || _currentPusher$connec3 === void 0 ? void 0 : _currentPusher$connec3.state]);
1015
+ }, [pusherRegisterUrls.join(","), academyDomain, pathname, isReadyRegisterPusher, currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec2 = currentPusher.connection) === null || _currentPusher$connec2 === void 0 ? void 0 : _currentPusher$connec2.state]);
1021
1016
  useEffect(function () {
1022
1017
  !user && loadInfo();
1023
1018
  !!user && checkRoleUser();
@@ -12008,9 +12003,9 @@ var Header = function Header(_ref) {
12008
12003
  direction: "row",
12009
12004
  alignItems: "center"
12010
12005
  }, React.createElement(Typography, {
12011
- className: "fw-bold text-primary me-2 text-nowrap",
12006
+ className: "fw-bold text-primary me-2 text-nowrap flex-shrink-1",
12012
12007
  sx: {
12013
- maxWidth: "120px",
12008
+ minWidth: "60px",
12014
12009
  overflow: "hidden",
12015
12010
  textOverflow: "ellipsis"
12016
12011
  }