@dexteel/mesf-core 3.10.2 → 3.10.4
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.esm.js +5 -9
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5705,19 +5705,15 @@ 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
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
setUserLogged(false);
|
|
5716
|
-
clearUserData();
|
|
5711
|
+
var logout = function () {
|
|
5712
|
+
clearUserData();
|
|
5713
|
+
setTimeout(function () {
|
|
5717
5714
|
navigate("/?".concat(params.toString()));
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
}); };
|
|
5715
|
+
}, 0);
|
|
5716
|
+
};
|
|
5721
5717
|
useEffect(function () {
|
|
5722
5718
|
logout();
|
|
5723
5719
|
}, []);
|