@ludo.ninja/components 2.3.30 → 2.3.31
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.
|
@@ -112,7 +112,9 @@ const Sidebar = () => {
|
|
|
112
112
|
closeSidebar();
|
|
113
113
|
redirectToLoginWindow();
|
|
114
114
|
},
|
|
115
|
-
logout:
|
|
115
|
+
logout: () => {
|
|
116
|
+
signOut(true);
|
|
117
|
+
},
|
|
116
118
|
}, isAuthorized: isAuthorized, userWallets: wallets, slots: {
|
|
117
119
|
menu: sideBarData.map(({ title, href, icon, isExternalUrl }) => ((0, jsx_runtime_1.jsxs)(SLink, { href: href, target: isExternalUrl ? "_blank" : "_self", onClick: closeSidebar, passHref: isExternalUrl, scale: (0, scale_1.getAdaptiveScale)({ windowDimensions, currentSize: 1 }), children: [(0, jsx_runtime_1.jsx)("span", { className: "icon-wrapper", children: icon }), title] }, title))),
|
|
118
120
|
userPicture: ({ children, height, width, isNeedBoxTransform }) => ((0, jsx_runtime_1.jsx)(Userpic_1.default, { width: width, height: height, userId: userId, isNeedBoxTransform: isNeedBoxTransform, children: children })),
|
|
@@ -111,7 +111,9 @@ const SidebarSpa = ({ SLink, UserPic, SidebarInviteCodeLabel, }) => {
|
|
|
111
111
|
closeSidebar();
|
|
112
112
|
redirectToLoginWindow();
|
|
113
113
|
},
|
|
114
|
-
logout:
|
|
114
|
+
logout: () => {
|
|
115
|
+
signOut(true);
|
|
116
|
+
},
|
|
115
117
|
}, isAuthorized: isAuthorized, userWallets: wallets, slots: {
|
|
116
118
|
menu: sideBarData.map(({ title, href, icon, isExternalUrl }) => ((0, jsx_runtime_1.jsxs)(SLink, { href: href, target: isExternalUrl ? "_blank" : "_self", onClick: closeSidebar, passHref: isExternalUrl, scale: (0, scale_1.getAdaptiveScale)({ windowDimensions, currentSize: 1 }), children: [(0, jsx_runtime_1.jsx)("span", { className: "icon-wrapper", children: icon }), title] }, title))),
|
|
117
119
|
userPicture: ({ children, height, width, isNeedBoxTransform }) => ((0, jsx_runtime_1.jsx)(UserPic, { width: width, height: height, userId: userId, isNeedBoxTransform: isNeedBoxTransform, children: children })),
|
|
@@ -33,7 +33,7 @@ const useSignOut = () => {
|
|
|
33
33
|
setUser(null);
|
|
34
34
|
// when invite code is not required = no redirect
|
|
35
35
|
// window.location.replace(ludoDomains[NEXT_PUBLIC_ENV_VALUE as TEnvValue]["welcome"]);
|
|
36
|
-
if (includeRedirect
|
|
36
|
+
if (includeRedirect) {
|
|
37
37
|
window.location.replace(ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["welcome"]);
|
|
38
38
|
}
|
|
39
39
|
}
|