@openeventkit/event-site 1.0.46 → 1.0.48
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openeventkit/event-site",
|
|
3
3
|
"description": "Event Site",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.48",
|
|
5
5
|
"author": "Tipit LLC",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@mui/base": "^5.0.0-alpha.114",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"netlify-cms-app": "^2.15.72",
|
|
76
76
|
"netlify-cms-lib-widgets": "^1.8.0",
|
|
77
77
|
"node-sass-utils": "^1.1.3",
|
|
78
|
-
"openstack-uicore-foundation": "
|
|
78
|
+
"openstack-uicore-foundation": "4.1.42",
|
|
79
79
|
"path-browserify": "^1.0.1",
|
|
80
80
|
"prop-types": "^15.6.0",
|
|
81
81
|
"react": "^18.2.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"stream-browserify": "^3.0.0",
|
|
118
118
|
"stream-chat": "^2.7.2",
|
|
119
119
|
"stream-chat-react": "3.1.7",
|
|
120
|
-
"summit-registration-lite": "^4.0.
|
|
120
|
+
"summit-registration-lite": "^4.0.18",
|
|
121
121
|
"superagent": "8.0.9",
|
|
122
122
|
"sweetalert2": "^9.17.0",
|
|
123
123
|
"upcoming-events-widget": "2.0.8",
|
|
@@ -50,7 +50,8 @@ const AuthComponent = ({
|
|
|
50
50
|
|
|
51
51
|
useEffect(() => {
|
|
52
52
|
const fragmentParser = new FragmentParser();
|
|
53
|
-
|
|
53
|
+
// to show the login dialog check if we are already logged or not
|
|
54
|
+
setIsActive(fragmentParser.getParam('login') && !isLoggedUser);
|
|
54
55
|
const paramInitialEmailValue = fragmentParser.getParam('email');
|
|
55
56
|
if (paramInitialEmailValue)
|
|
56
57
|
setInitialEmailValue(paramInitialEmailValue);
|
|
@@ -104,7 +105,6 @@ const AuthComponent = ({
|
|
|
104
105
|
};
|
|
105
106
|
|
|
106
107
|
const loginPasswordless = (code, email) => {
|
|
107
|
-
|
|
108
108
|
const params = {
|
|
109
109
|
connection: "email",
|
|
110
110
|
otp: code,
|
|
@@ -141,7 +141,12 @@ const AuthComponent = ({
|
|
|
141
141
|
const passwordlessLoginProps = {
|
|
142
142
|
email: userEmail,
|
|
143
143
|
codeLength: otpLength,
|
|
144
|
-
passwordlessLogin: (code) => loginPasswordless(code, userEmail).then(() =>
|
|
144
|
+
passwordlessLogin: (code) => loginPasswordless(code, userEmail).then(() => {
|
|
145
|
+
// close popup and then navigate bc its its the same origin page
|
|
146
|
+
// it would not reload and closed the popup automatically
|
|
147
|
+
handleClosePopup();
|
|
148
|
+
navigate(getBackURL(false))
|
|
149
|
+
}).catch((e) => console.log(e)),
|
|
145
150
|
codeError: otpError,
|
|
146
151
|
goToLogin: () => setOtpLogin(false),
|
|
147
152
|
getLoginCode: (email) => sendCode(email),
|