@@ -183,7 +183,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
183
183
function date_change ( date ) : void {
184
184
actions . assignments . set_due_date (
185
185
assignment . get ( "assignment_id" ) ,
186
- date != null ? date . toISOString ( ) : undefined
186
+ date != null ? date . toISOString ( ) : undefined ,
187
187
) ;
188
188
}
189
189
@@ -214,7 +214,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
214
214
on_save = { ( value ) =>
215
215
actions . assignments . set_assignment_note (
216
216
assignment . get ( "assignment_id" ) ,
217
- value
217
+ value ,
218
218
)
219
219
}
220
220
/>
@@ -266,7 +266,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
266
266
< Button
267
267
onClick = { ( ) =>
268
268
actions . assignments . export_collected (
269
- assignment . get ( "assignment_id" )
269
+ assignment . get ( "assignment_id" ) ,
270
270
)
271
271
}
272
272
>
@@ -324,7 +324,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
324
324
</ Col >
325
325
</ Row >
326
326
</ Col >
327
- </ Row >
327
+ </ Row > ,
328
328
) ;
329
329
330
330
if ( expand_peer_config ) {
@@ -333,7 +333,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
333
333
< Col md = { 20 } offset = { 4 } >
334
334
{ render_configure_peer ( ) }
335
335
</ Col >
336
- </ Row >
336
+ </ Row > ,
337
337
) ;
338
338
}
339
339
if ( confirm_delete ) {
@@ -342,7 +342,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
342
342
< Col md = { 20 } offset = { 4 } >
343
343
{ render_confirm_delete ( ) }
344
344
</ Col >
345
- </ Row >
345
+ </ Row > ,
346
346
) ;
347
347
}
348
348
@@ -361,7 +361,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
361
361
< Col md = { width } key = { key } >
362
362
{ render_nbgrader_button ( status ) }
363
363
{ b2 }
364
- </ Col >
364
+ </ Col > ,
365
365
) ;
366
366
} ;
367
367
@@ -375,7 +375,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
375
375
buttons . push (
376
376
< Col md = { width } key = { name } >
377
377
{ b }
378
- </ Col >
378
+ </ Col > ,
379
379
) ;
380
380
if ( peer && name === "peer_collect" ) {
381
381
insert_grade_button ( "skip_peer_collect" ) ;
@@ -397,15 +397,15 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
397
397
< Col md = { 20 } key = "buttons" >
398
398
< Row > { buttons } </ Row >
399
399
</ Col >
400
- </ Row >
400
+ </ Row > ,
401
401
) ;
402
402
403
403
v . push (
404
404
< Row key = "header2-copy" >
405
405
< Col md = { 20 } offset = { 4 } >
406
406
{ render_copy_confirms ( status ) }
407
407
</ Col >
408
- </ Row >
408
+ </ Row > ,
409
409
) ;
410
410
}
411
411
/* The whiteSpace:'normal' here is because we put this in an
@@ -463,7 +463,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
463
463
// a lot more work to properly implement.
464
464
actions . toggle_item_expansion (
465
465
"assignment" ,
466
- assignment . get ( "assignment_id" )
466
+ assignment . get ( "assignment_id" ) ,
467
467
) ;
468
468
}
469
469
return redux
@@ -601,7 +601,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
601
601
type = "text"
602
602
onChange = { ( e ) =>
603
603
set_copy_assignment_confirm_overwrite_text (
604
- ( e . target as any ) . value
604
+ ( e . target as any ) . value ,
605
605
)
606
606
}
607
607
style = { { marginTop : "1ex" } }
@@ -624,7 +624,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
624
624
function copy_assignment (
625
625
step ,
626
626
new_only : boolean ,
627
- overwrite : boolean = false
627
+ overwrite : boolean = false ,
628
628
) {
629
629
// assign assignment to all (non-deleted) students
630
630
const assignment_id : string | undefined = assignment . get ( "assignment_id" ) ;
@@ -634,31 +634,31 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
634
634
actions . assignments . copy_assignment_to_all_students (
635
635
assignment_id ,
636
636
new_only ,
637
- overwrite
637
+ overwrite ,
638
638
) ;
639
639
break ;
640
640
case "collect" :
641
641
actions . assignments . copy_assignment_from_all_students (
642
642
assignment_id ,
643
- new_only
643
+ new_only ,
644
644
) ;
645
645
break ;
646
646
case "peer_assignment" :
647
647
actions . assignments . peer_copy_to_all_students (
648
648
assignment_id ,
649
- new_only
649
+ new_only ,
650
650
) ;
651
651
break ;
652
652
case "peer_collect" :
653
653
actions . assignments . peer_collect_from_all_students (
654
654
assignment_id ,
655
- new_only
655
+ new_only ,
656
656
) ;
657
657
break ;
658
658
case "return_graded" :
659
659
actions . assignments . return_assignment_to_all_students (
660
660
assignment_id ,
661
- new_only
661
+ new_only ,
662
662
) ;
663
663
break ;
664
664
default :
@@ -707,7 +707,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
707
707
708
708
function render_copy_confirm_to_all (
709
709
step : AssignmentCopyStep ,
710
- status
710
+ status ,
711
711
) : Rendered {
712
712
const n = status [ `not_${ step } ` ] ;
713
713
const message = (
@@ -743,7 +743,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
743
743
}
744
744
745
745
function copy_confirm_all_caution (
746
- step : AssignmentCopyStep
746
+ step : AssignmentCopyStep ,
747
747
) : Rendered | string {
748
748
switch ( step ) {
749
749
case "assignment" :
@@ -777,7 +777,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
777
777
}
778
778
779
779
function render_copy_confirm_overwrite_all (
780
- step : AssignmentCopyStep
780
+ step : AssignmentCopyStep ,
781
781
) : Rendered {
782
782
return (
783
783
< div key = { "copy_confirm_overwrite_all" } style = { { marginTop : "15px" } } >
@@ -812,7 +812,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
812
812
813
813
function render_copy_confirm_to_all_or_new (
814
814
step : AssignmentCopyStep ,
815
- status
815
+ status ,
816
816
) : Rendered {
817
817
const n = status [ `not_${ step } ` ] ;
818
818
const m = n + status [ step ] ;
@@ -1077,7 +1077,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
1077
1077
actions . assignments . set_skip (
1078
1078
assignment . get ( "assignment_id" ) ,
1079
1079
"grading" ,
1080
- ! assignment . get ( "skip_grading" )
1080
+ ! assignment . get ( "skip_grading" ) ,
1081
1081
) ;
1082
1082
}
1083
1083
@@ -1182,7 +1182,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
1182
1182
1183
1183
function undelete_assignment ( ) {
1184
1184
return actions . assignments . undelete_assignment (
1185
- assignment . get ( "assignment_id" )
1185
+ assignment . get ( "assignment_id" ) ,
1186
1186
) ;
1187
1187
}
1188
1188
@@ -1264,7 +1264,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
1264
1264
onClick = { ( ) =>
1265
1265
actions . toggle_item_expansion (
1266
1266
"peer_config" ,
1267
- assignment . get ( "assignment_id" )
1267
+ assignment . get ( "assignment_id" ) ,
1268
1268
)
1269
1269
}
1270
1270
>
@@ -1303,7 +1303,7 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
1303
1303
e . preventDefault ( ) ;
1304
1304
actions . toggle_item_expansion (
1305
1305
"assignment" ,
1306
- assignment . get ( "assignment_id" )
1306
+ assignment . get ( "assignment_id" ) ,
1307
1307
) ;
1308
1308
} }
1309
1309
>
@@ -1338,5 +1338,5 @@ export const Assignment: React.FC<AssignmentProps> = React.memo(
1338
1338
</ div >
1339
1339
) ;
1340
1340
} ,
1341
- isSame
1341
+ isSame ,
1342
1342
) ;
0 commit comments