@@ -211,7 +211,9 @@ const legal = [
211
211
} ,
212
212
{
213
213
formLabel : "Recruiting" ,
214
- input : [ "I agree that my contact and job-related data may be passed on to participating recruiters (sponsors)" ] ,
214
+ input : [
215
+ "I agree that my contact and job-related data may be passed on to participating recruiters (sponsors)" ,
216
+ ] ,
215
217
name : "recruiters" ,
216
218
type : 5 ,
217
219
required : false ,
@@ -228,15 +230,12 @@ const legal = [
228
230
} ,
229
231
] ;
230
232
231
-
232
233
function Registration ( ) {
233
234
const [ activeStep , setActiveStep ] = React . useState ( 0 ) ;
234
235
const [ values , setValues ] = useState ( { } ) ;
235
236
const [ isSending , setIsSending ] = useState ( false ) ;
236
237
const registrationRest = useMemo ( ( ) => new RegistrationRest ( ) , [ ] ) ;
237
238
238
-
239
-
240
239
const steps = [
241
240
{
242
241
label : "Personal data" ,
@@ -252,7 +251,12 @@ function Registration() {
252
251
} ,
253
252
{
254
253
label : "Team members" ,
255
- children : < GroupManager eventId = { "02fc811b-1e67-402e-ac62-3f376cf33b6b" } onGroupChange = { ( change ) => handleChange ( "group" , change ) } /> ,
254
+ children : (
255
+ < GroupManager
256
+ eventId = { "02fc811b-1e67-402e-ac62-3f376cf33b6b" }
257
+ onGroupChange = { ( change ) => handleChange ( "group" , change ) }
258
+ />
259
+ ) ,
256
260
} ,
257
261
{
258
262
label : "Confirmation" ,
@@ -261,24 +265,24 @@ function Registration() {
261
265
{
262
266
label : "E-Mail Verification" ,
263
267
children : (
264
- < Box
265
- sx = { {
266
- width : "100%" ,
267
- height : "20vh" ,
268
- display : "flex" ,
269
- justifyContent : "center" ,
270
- alignItems : "center" ,
271
- paddingTop : "3rem" ,
272
- } }
273
- >
274
- < Stack spacing = { 3 } justifyContent = { "center" } >
275
- < Mail color = { "inherit" } sx = { { fontSize : "2rem" } } />
276
- < Typography >
277
- To complete the registration, please click on the link in the email
278
- we sent you!
279
- </ Typography >
280
- </ Stack >
281
- </ Box >
268
+ < Box
269
+ sx = { {
270
+ width : "100%" ,
271
+ height : "20vh" ,
272
+ display : "flex" ,
273
+ justifyContent : "center" ,
274
+ alignItems : "center" ,
275
+ paddingTop : "3rem" ,
276
+ } }
277
+ >
278
+ < Stack spacing = { 3 } justifyContent = { "center" } >
279
+ < Mail color = { "inherit" } sx = { { fontSize : "2rem" } } />
280
+ < Typography >
281
+ To complete the registration, please click on the link in the
282
+ email we sent you!
283
+ </ Typography >
284
+ </ Stack >
285
+ </ Box >
282
286
) ,
283
287
} ,
284
288
] ;
@@ -466,9 +470,10 @@ function Registration() {
466
470
setIsSending ( false ) ;
467
471
handleNext ( ) ;
468
472
} )
469
- . catch ( ( ) => {
473
+ . catch ( ( error ) => {
470
474
alert (
471
- "Could not save Registration. Did you already submit? Please check your spam folder for verification mail." ,
475
+ "Could not save Registration. Please try again. If problem persists, please contact team@hackhpi.org. Error: " +
476
+ JSON . stringify ( error . data ) ,
472
477
) ;
473
478
setIsSending ( false ) ;
474
479
} ) ;
@@ -586,10 +591,7 @@ function Registration() {
586
591
</ Step >
587
592
) ) }
588
593
</ Stepper >
589
- < Typography
590
- color = { "text.disabled" }
591
- sx = { { marginTop : 3 } }
592
- >
594
+ < Typography color = { "text.disabled" } sx = { { marginTop : 3 } } >
593
595
Read our{ " " }
594
596
< Link href = { "/privacy" } color = { "inherit" } >
595
597
privacy policy
0 commit comments