@@ -87,10 +87,9 @@ const GroupAccumulatorsPanel = ({
8787 const platformReadOnly = isReviewer ( userInfo ?. platform_role ) ;
8888 const canCreate =
8989 ! platformReadOnly && groupRole != null && groupRole !== "VIEWER" ;
90- const canManage = ! platformReadOnly && canChangeContentStatus (
91- groupRole ,
92- userInfo ?. platform_role ,
93- ) ;
90+ const canManage =
91+ ! platformReadOnly &&
92+ canChangeContentStatus ( groupRole , userInfo ?. platform_role ) ;
9493
9594 const [ dialogOpen , setDialogOpen ] = useState ( false ) ;
9695 const [ editing , setEditing ] = useState < GroupAccumulatorDTO | null > ( null ) ;
@@ -122,7 +121,9 @@ const GroupAccumulatorsPanel = ({
122121 let cancelled = false ;
123122 searchAccumulatorPresets ( { limit : 100 } ) . then ( ( result ) => {
124123 if ( cancelled ) return ;
125- const match = result . items . find ( ( preset ) => preset . id === form . preset ?. id ) ;
124+ const match = result . items . find (
125+ ( preset ) => preset . id === form . preset ?. id ,
126+ ) ;
126127 if ( match ) {
127128 setForm ( ( prev ) => ( { ...prev , preset : match } ) ) ;
128129 }
@@ -318,8 +319,12 @@ const GroupAccumulatorsPanel = ({
318319 ? accumulator . target_count . toLocaleString ( )
319320 : "—" }
320321 </ span >
321- < span > Start: { formatAccumulatorDate ( accumulator . start_date ) } </ span >
322- < span > End: { formatAccumulatorDate ( accumulator . end_date ) } </ span >
322+ < span >
323+ Start: { formatAccumulatorDate ( accumulator . start_date ) }
324+ </ span >
325+ < span >
326+ End: { formatAccumulatorDate ( accumulator . end_date ) }
327+ </ span >
323328 < span >
324329 Joined:{ " " }
325330 { accumulator . member_count != null
@@ -401,7 +406,10 @@ const GroupAccumulatorsPanel = ({
401406 < div className = "grid sm:grid-cols-2 gap-4" >
402407 < div className = "space-y-2" >
403408 < p className = "text-sm font-bold" > Start date</ p >
404- < Pecha . Popover open = { startDateOpen } onOpenChange = { setStartDateOpen } >
409+ < Pecha . Popover
410+ open = { startDateOpen }
411+ onOpenChange = { setStartDateOpen }
412+ >
405413 < Pecha . PopoverTrigger asChild >
406414 < Button
407415 type = "button"
@@ -469,7 +477,9 @@ const GroupAccumulatorsPanel = ({
469477 < Pecha . Calendar
470478 mode = "single"
471479 selected = {
472- form . end_date ? fromBackendISO ( form . end_date ) : undefined
480+ form . end_date
481+ ? fromBackendISO ( form . end_date )
482+ : undefined
473483 }
474484 onSelect = { ( d ) => {
475485 setEndDateOpen ( false ) ;
@@ -501,14 +511,19 @@ const GroupAccumulatorsPanel = ({
501511 >
502512 < span
503513 className = {
504- form . preset ? "text-foreground" : "text-muted-foreground"
514+ form . preset
515+ ? "text-foreground"
516+ : "text-muted-foreground"
505517 }
506518 >
507519 { presetTriggerLabel }
508520 </ span >
509521 </ Button >
510522 </ Pecha . PopoverTrigger >
511- < Pecha . PopoverContent className = "w-[--radix-popover-trigger-width] p-0" align = "start" >
523+ < Pecha . PopoverContent
524+ className = "w-[--radix-popover-trigger-width] p-0"
525+ align = "start"
526+ >
512527 < Pecha . Command shouldFilter = { false } >
513528 < Pecha . CommandInput
514529 placeholder = "Search presets…"
@@ -601,8 +616,8 @@ const GroupAccumulatorsPanel = ({
601616 < Pecha . AlertDialogTitle > Delete accumulator?</ Pecha . AlertDialogTitle >
602617 < Pecha . AlertDialogDescription >
603618 This will remove “
604- { deleteTarget ?. title ?. trim ( ) || "Untitled accumulator" } ” from
605- the group. This action cannot be undone.
619+ { deleteTarget ?. title ?. trim ( ) || "Untitled accumulator" } ”
620+ from the group. This action cannot be undone.
606621 </ Pecha . AlertDialogDescription >
607622 </ Pecha . AlertDialogHeader >
608623 < Pecha . AlertDialogFooter >
0 commit comments