@openeventkit/event-site 2.0.78 → 2.0.80
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 +1 -1
- package/src/components/summit-my-orders-tickets/components/TicketPopup/TicketPopupEditDetailsForm/TicketPopupEditDetailsForm.js +12 -9
- package/src/content/site-settings/index.json +1 -16
- package/src/content/sponsors.json +1 -1
- package/src/templates/extra-questions-page.js +6 -3
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { useDispatch, useSelector } from "react-redux";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { CSSTransition } from "react-transition-group";
|
|
@@ -30,7 +30,7 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
30
30
|
order,
|
|
31
31
|
canEditTicketData,
|
|
32
32
|
goToReassignPanel,
|
|
33
|
-
context
|
|
33
|
+
context
|
|
34
34
|
}) => {
|
|
35
35
|
const formRef = useRef(null);
|
|
36
36
|
const { t } = useTranslation();
|
|
@@ -126,7 +126,7 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
const handleConfirmAccept = async () => {
|
|
129
|
-
setShowConfirm(false);
|
|
129
|
+
setShowConfirm(false);
|
|
130
130
|
dispatch(removeAttendee({ticket, context})).then((updatedTicket) => {
|
|
131
131
|
onTicketAssignChange(updatedTicket);
|
|
132
132
|
toggleUnassignMessage()
|
|
@@ -160,7 +160,10 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
160
160
|
}
|
|
161
161
|
// extra question
|
|
162
162
|
if (knownErrorRef) {
|
|
163
|
-
knownErrorRef.scrollIntoView(
|
|
163
|
+
knownErrorRef.scrollIntoView({
|
|
164
|
+
behavior: 'smooth',
|
|
165
|
+
block: 'center',
|
|
166
|
+
});
|
|
164
167
|
return;
|
|
165
168
|
}
|
|
166
169
|
// disclaimer
|
|
@@ -207,10 +210,10 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
207
210
|
};
|
|
208
211
|
|
|
209
212
|
const canSubmitChanges = () => {
|
|
210
|
-
const qs = new QuestionsSet(extraQuestions, initialValues[TicketKeys.extraQuestions]);
|
|
213
|
+
const qs = new QuestionsSet(extraQuestions, initialValues[TicketKeys.extraQuestions]);
|
|
211
214
|
const unansweredExtraQuestions = !qs.completed();
|
|
212
215
|
return canEditTicketData || isReassignable || unansweredExtraQuestions;
|
|
213
|
-
}
|
|
216
|
+
}
|
|
214
217
|
|
|
215
218
|
return (
|
|
216
219
|
<div className="ticket-popup-edit-details-form">
|
|
@@ -252,7 +255,7 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
252
255
|
value={initialValues[TicketKeys.email]}
|
|
253
256
|
disabled={true}
|
|
254
257
|
/>
|
|
255
|
-
{isUserTicketOwner && isReassignable &&
|
|
258
|
+
{isUserTicketOwner && isReassignable &&
|
|
256
259
|
<div className="mt-1">
|
|
257
260
|
<span onClick={() => goToReassignPanel()}>
|
|
258
261
|
<u>Reassign</u>
|
|
@@ -332,7 +335,7 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
332
335
|
</div>
|
|
333
336
|
}
|
|
334
337
|
|
|
335
|
-
{hasExtraQuestions &&
|
|
338
|
+
{hasExtraQuestions &&
|
|
336
339
|
<div className="column is-full pt-5">
|
|
337
340
|
<h4 className="pb-2">{t("ticket_popup.edit_preferences")}</h4>
|
|
338
341
|
<ExtraQuestionsForm
|
|
@@ -398,4 +401,4 @@ export const TicketPopupEditDetailsForm = ({
|
|
|
398
401
|
/>
|
|
399
402
|
</div>
|
|
400
403
|
);
|
|
401
|
-
};
|
|
404
|
+
};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"widgets": {
|
|
3
|
-
"chat": {
|
|
4
|
-
"enabled": true,
|
|
5
|
-
"showQA": false,
|
|
6
|
-
"showHelp": false,
|
|
7
|
-
"defaultScope": "page"
|
|
8
|
-
},
|
|
9
|
-
"schedule": {
|
|
10
|
-
"allowClick": true
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"favicon": {
|
|
14
|
-
"asset": "icon.png"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
{"widgets":{"chat":{"enabled":true,"showQA":false,"showHelp":false,"defaultScope":"page"},"schedule":{"allowClick":true}},"favicon":{"asset":"icon.png"},"staticJsonFilesBuildTime":[{"file":"src/data/summit.json","build_time":1701469138106},{"file":"src/data/events.json","build_time":1701469139680},{"file":"src/data/events.idx.json","build_time":1701469139682},{"file":"src/data/speakers.json","build_time":1701469140132},{"file":"src/data/speakers.idx.json","build_time":1701469140132},{"file":"src/content/sponsors.json","build_time":1701469140775},{"file":"src/data/voteable-presentations.json","build_time":1701469141157}],"lastBuild":1701469141157}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[
|
|
1
|
+
[]
|
|
@@ -99,7 +99,10 @@ export const ExtraQuestionsPageTemplate = ({ user, summit, extraQuestions, atten
|
|
|
99
99
|
}
|
|
100
100
|
// extra question
|
|
101
101
|
if (knownErrorRef) {
|
|
102
|
-
knownErrorRef.scrollIntoView(
|
|
102
|
+
knownErrorRef.scrollIntoView({
|
|
103
|
+
behavior: 'smooth',
|
|
104
|
+
block: 'center',
|
|
105
|
+
});
|
|
103
106
|
return;
|
|
104
107
|
}
|
|
105
108
|
// disclaimer
|
|
@@ -159,7 +162,7 @@ export const ExtraQuestionsPageTemplate = ({ user, summit, extraQuestions, atten
|
|
|
159
162
|
<div className={styles.extraQuestionsAttendeeWarning}>
|
|
160
163
|
{`Attention: The info below is for ${getAttendeeFullname(attendee)}. No additional action is required if you
|
|
161
164
|
prefer ${attendee.first_name || attendee.email} to complete this info; they have received an email with instructions.
|
|
162
|
-
You can manage this ticket on the "My Orders / Tickets" page.`}
|
|
165
|
+
You can manage this ticket on the "My Orders / Tickets" page.`}
|
|
163
166
|
</div>
|
|
164
167
|
}
|
|
165
168
|
<div className={`content columns ${styles.extraQuestionsContainer}`}>
|
|
@@ -242,7 +245,7 @@ export const ExtraQuestionsPageTemplate = ({ user, summit, extraQuestions, atten
|
|
|
242
245
|
questionContainerClassName={`columns is-multiline ${styles.extraQuestion} pt-3`}
|
|
243
246
|
questionLabelContainerClassName={'column is-full pb-0'}
|
|
244
247
|
questionControlContainerClassName={`column is-full pt-0`}
|
|
245
|
-
shouldScroll2FirstError={
|
|
248
|
+
shouldScroll2FirstError={true}
|
|
246
249
|
onError={handleExtraQuestionError}
|
|
247
250
|
/>
|
|
248
251
|
</>
|