mario-teacher-student-client 2.1.78-beta → 2.1.81-beta

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
@@ -25,8 +25,6 @@ var Pusher = _interopDefault(require('pusher-js/with-encryption'));
25
25
  var TimelineIcon = _interopDefault(require('@material-ui/icons/Timeline'));
26
26
  var DateRangeIcon = _interopDefault(require('@material-ui/icons/DateRange'));
27
27
  var LinkIcon = _interopDefault(require('@material-ui/icons/Link'));
28
- var reactRouter = require('react-router');
29
- var constants = require('mario-core/dist/utils/constants');
30
28
  var dateFns = require('date-fns');
31
29
  var moment = _interopDefault(require('moment'));
32
30
  var Alert = _interopDefault(require('@material-ui/lab/Alert'));
@@ -1430,7 +1428,7 @@ var MainLayout = function MainLayout(_ref) {
1430
1428
  pathName = _useState3[0],
1431
1429
  setPathName = _useState3[1];
1432
1430
 
1433
- var location = reactRouter.useLocation();
1431
+ var location = reactRouterDom.useLocation();
1434
1432
  var authRoutes = React.useMemo(function () {
1435
1433
  return routes.filter(function (route) {
1436
1434
  return marioCore.canAccessRoute(user === null || user === void 0 ? void 0 : user.roles, route.roles);
@@ -1456,7 +1454,7 @@ var MainLayout = function MainLayout(_ref) {
1456
1454
  React.useEffect(function () {
1457
1455
  if (!!user) {
1458
1456
  marioCore.amplitudeClient.resetSessionId();
1459
- marioCore.amplitudeClient.init(constants.INIT_AMPLITUDE_KEY, user.email, {
1457
+ marioCore.amplitudeClient.init(marioCore.INIT_AMPLITUDE_KEY, user.email, {
1460
1458
  includeReferrer: true,
1461
1459
  includeUtm: true
1462
1460
  });