feat: branding templates table

This commit is contained in:
Ahmed Bouhuolia
2024-09-11 21:16:21 +02:00
parent ef74e250f1
commit a7df23cebc
20 changed files with 418 additions and 16 deletions

View File

@@ -41,11 +41,11 @@ export default function InvoiceCustomizeContent() {
const reqValues = transformToEditRequest(values, templateId);
// Edit existing template
editPdfTemplate({ ...reqValues })
.then(() => handleSuccess('PDF template updated successfully!'))
.catch(() =>
handleError('An error occurred while updating the PDF template.'),
);
// editPdfTemplate({ templateId, values: reqValues })
// .then(() => handleSuccess('PDF template updated successfully!'))
// .catch(() =>
// handleError('An error occurred while updating the PDF template.'),
// );
} else {
const reqValues = transformToNewRequest(values);