|
|
@@ -5,6 +5,7 @@ import { addCustomFields } from '@/framework/document-introspection/add-custom-f
|
|
|
import { paymentMethodListQuery } from './payment-methods.graphql.js';
|
|
|
import { DetailPageButton } from '@/components/shared/detail-page-button.js';
|
|
|
import { Badge } from '@/components/ui/badge.js';
|
|
|
+import { BooleanDisplayBadge } from '@/components/data-display/boolean.js';
|
|
|
|
|
|
export const Route = createFileRoute('/_authenticated/_payment-methods/payment-methods')({
|
|
|
component: PaymentMethodListPage,
|
|
|
@@ -44,9 +45,7 @@ function PaymentMethodListPage() {
|
|
|
enabled: {
|
|
|
header: 'Enabled',
|
|
|
cell: ({ row }) => (
|
|
|
- <Badge variant={row.original.enabled ? 'success' : 'destructive'}>
|
|
|
- <Trans>{row.original.enabled ? 'Enabled' : 'Disabled'}</Trans>
|
|
|
- </Badge>
|
|
|
+ <BooleanDisplayBadge value={row.original.enabled} />
|
|
|
),
|
|
|
},
|
|
|
}}
|