🐛 fix(payment): Add notification URL field to payment management interface

This commit is contained in:
web@ppanel
2025-03-11 21:22:18 +07:00
parent 6752420ba5
commit 5c710e1add
27 changed files with 28 additions and 9 deletions
@@ -197,7 +197,7 @@ export default function PaymentForm<T>({
<FormLabel>{t('domain')}</FormLabel>
<FormControl>
<EnhancedInput
placeholder={t('domainPlaceholder', { example: 'https://example.com' })}
placeholder={t('domainPlaceholder', { example: 'http(s)://example.com' })}
value={field.value}
onValueChange={(value) => form.setValue('domain', value as string)}
/>
@@ -96,12 +96,8 @@ export default function PaymentTable() {
cell: ({ row }) => <Badge>{t(row.getValue('platform'))}</Badge>,
},
{
accessorKey: 'domain',
header: t('domain'),
cell: ({ row }) => {
const domain = row.getValue('domain') as string;
return domain ? <Badge variant='outline'>{domain}</Badge> : '--';
},
accessorKey: 'notify_url',
header: t('notify_url'),
},
{
accessorKey: 'fee',