Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/plugin-form-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"test": "echo \"No tests available.\""
},
"dependencies": {
"@payloadcms/translations": "workspace:*",
"@payloadcms/ui": "workspace:*",
"escape-html": "^1.0.3"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@ export const defaultPaymentFields: Field = {
{
name: 'field',
type: 'text',
label: 'Field',
label: ({ t }) =>
// @ts-expect-error - translations are not typed in plugins yet
t('plugin-form-builder:field'),
},
{
name: 'status',
type: 'text',
label: 'Status',
label: ({ t }) =>
// @ts-expect-error - translations are not typed in plugins yet
t('plugin-form-builder:paymentStatus'),
},
{
name: 'amount',
type: 'number',
admin: {
description: 'Amount in cents',
description: ({ t }) =>
// @ts-expect-error - translations are not typed in plugins yet
t('plugin-form-builder:amountInCents'),
},
},
{
Expand All @@ -32,20 +38,28 @@ export const defaultPaymentFields: Field = {
{
name: 'token',
type: 'text',
label: 'token',
label: ({ t }) =>
// @ts-expect-error - translations are not typed in plugins yet
t('plugin-form-builder:token'),
},
{
name: 'brand',
type: 'text',
label: 'Brand',
label: ({ t }) =>
// @ts-expect-error - translations are not typed in plugins yet
t('plugin-form-builder:brand'),
},
{
name: 'number',
type: 'text',
label: 'Number',
label: ({ t }) =>
// @ts-expect-error - translations are not typed in plugins yet
t('plugin-form-builder:numberLabelSingular'),
},
],
label: 'Credit Card',
label: ({ t }) =>
// @ts-expect-error - translations are not typed in plugins yet
t('plugin-form-builder:creditCard'),
},
],
}
Loading
Loading