@dexteel/mesf-core 3.10.2 → 3.10.3

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.
Files changed (2) hide show
  1. package/dist/index.esm.js +4 -10
  2. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -5705,19 +5705,13 @@ function Login(_a) {
5705
5705
  }
5706
5706
 
5707
5707
  function Logout() {
5708
- var _this = this;
5709
5708
  var clearUserData = useContext(AuthContext).clearUserData;
5710
5709
  var navigate = useNavigate();
5711
5710
  var _a = useSearchParams(), params = _a[0]; _a[1];
5712
- var setUserLogged = useUserContext().actions.setUserLogged;
5713
- var logout = function () { return __awaiter(_this, void 0, void 0, function () {
5714
- return __generator(this, function (_a) {
5715
- setUserLogged(false);
5716
- clearUserData();
5717
- navigate("/?".concat(params.toString()));
5718
- return [2 /*return*/];
5719
- });
5720
- }); };
5711
+ var logout = function () {
5712
+ clearUserData();
5713
+ navigate("/?".concat(params.toString()));
5714
+ };
5721
5715
  useEffect(function () {
5722
5716
  logout();
5723
5717
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "3.10.2",
3
+ "version": "3.10.3",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",