@@ -459,35 +459,35 @@ function ListPage({ listKey }: ListPageProps) {
459459 const actionsList = [
460460 ...actionsAvailable ,
461461 ...( list . hideDelete
462- ? [ ] : [
463- {
464- key : 'delete' ,
465- label : 'Delete' ,
466- icon : 'trash2Icon' ,
467- graphql : {
468- names : {
469- one : list . graphql . names . deleteMutationName ,
470- many : list . graphql . names . deleteManyMutationName ,
462+ ? [ ]
463+ : [
464+ {
465+ key : 'delete' ,
466+ label : 'Delete' ,
467+ icon : 'trash2Icon' ,
468+ graphql : {
469+ names : {
470+ one : list . graphql . names . deleteMutationName ,
471+ many : list . graphql . names . deleteManyMutationName ,
472+ } ,
473+ } ,
474+ messages : {
475+ promptTitle : 'Delete {singular}?' ,
476+ promptTitleMany : 'Delete {count} {singular|plural}?' ,
477+ prompt : 'Are you sure you want to delete {singular}? This action cannot be undone.' ,
478+ promptMany :
479+ 'Are you sure you want to delete {count} {singular|plural}? This action cannot be undone.' ,
480+ promptConfirmLabel : 'Yes, delete' ,
481+ promptConfirmLabelMany : 'Yes, delete' ,
482+ success : 'Deleted {singular}.' ,
483+ successMany : 'Deleted {countSuccess} {singular|plural}.' ,
484+ fail : 'Unable to delete {singular}.' ,
485+ failMany : 'Unable to delete {countFail} {singular|plural}.' ,
471486 } ,
472- } ,
473- messages : {
474- promptTitle : 'Delete {singular}?' ,
475- promptTitleMany : 'Delete {count} {singular|plural}?' ,
476- prompt : 'Are you sure you want to delete {singular}? This action cannot be undone.' ,
477- promptMany :
478- 'Are you sure you want to delete {count} {singular|plural}? This action cannot be undone.' ,
479- promptConfirmLabel : 'Yes, delete' ,
480- promptConfirmLabelMany : 'Yes, delete' ,
481- success : 'Deleted {singular}.' ,
482- successMany : 'Deleted {countSuccess} {singular|plural}.' ,
483- fail : 'Unable to delete {singular}.' ,
484- failMany : 'Unable to delete {countFail} {singular|plural}.' ,
485- } ,
486- itemView : null as any , // unusud
487- listView : { actionMode : list . hideDelete ? 'hidden' : 'enabled' } ,
488- } as const ,
489- ]
490- ) ,
487+ itemView : null as any , // unusud
488+ listView : { actionMode : list . hideDelete ? 'hidden' : 'enabled' } ,
489+ } as const ,
490+ ] ) ,
491491 ]
492492 const selectionMode = actionsList . length > 0 ? 'multiple' : 'none'
493493 const selectedRows = useMemo (
0 commit comments