+
+ Are you sure want to delete branding template?
+
+
+ );
+}
+
+export default compose(
+ withAlertStoreConnect(),
+ withAlertActions,
+)(DeleteBrandingTemplateAlert);
+
+
diff --git a/packages/webapp/src/containers/Sales/Invoices/InvoiceCustomize/InvoiceCustomize.tsx b/packages/webapp/src/containers/Sales/Invoices/InvoiceCustomize/InvoiceCustomize.tsx
index c42dc2e44..966a3cf9e 100644
--- a/packages/webapp/src/containers/Sales/Invoices/InvoiceCustomize/InvoiceCustomize.tsx
+++ b/packages/webapp/src/containers/Sales/Invoices/InvoiceCustomize/InvoiceCustomize.tsx
@@ -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);
diff --git a/packages/webapp/src/containers/Sales/Invoices/InvoicesLanding/InvoicesActionsBar.tsx b/packages/webapp/src/containers/Sales/Invoices/InvoicesLanding/InvoicesActionsBar.tsx
index be63b7637..de71f269c 100644
--- a/packages/webapp/src/containers/Sales/Invoices/InvoicesLanding/InvoicesActionsBar.tsx
+++ b/packages/webapp/src/containers/Sales/Invoices/InvoicesLanding/InvoicesActionsBar.tsx
@@ -109,7 +109,7 @@ function InvoiceActionsBar({
// Handles the invoice customize button click.
const handleCustomizeBtnClick = () => {
- openDrawer(DRAWERS.INVOICE_CUSTOMIZE);
+ openDrawer(DRAWERS.BRANDING_TEMPLATES);
};
return (
diff --git a/packages/webapp/src/hooks/query/pdf-templates.ts b/packages/webapp/src/hooks/query/pdf-templates.ts
index 2045c0fb3..d01673500 100644
--- a/packages/webapp/src/hooks/query/pdf-templates.ts
+++ b/packages/webapp/src/hooks/query/pdf-templates.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import {
useMutation,
useQuery,
diff --git a/packages/webapp/src/style/components/DataTable/DataTable.scss b/packages/webapp/src/style/components/DataTable/DataTable.scss
index a96d7a003..3d6387028 100644
--- a/packages/webapp/src/style/components/DataTable/DataTable.scss
+++ b/packages/webapp/src/style/components/DataTable/DataTable.scss
@@ -20,7 +20,7 @@
.th {
padding: 0.68rem 0.5rem;
- background: #f5f5f5;
+ background: #f6f7f9;
font-size: 14px;
color: #424853;
font-weight: 400;
diff --git a/packages/webapp/src/style/pages/Dashboard/Dashboard.scss b/packages/webapp/src/style/pages/Dashboard/Dashboard.scss
index a6ea3968f..02a7c0049 100644
--- a/packages/webapp/src/style/pages/Dashboard/Dashboard.scss
+++ b/packages/webapp/src/style/pages/Dashboard/Dashboard.scss
@@ -232,6 +232,15 @@ $dashboard-views-bar-height: 44px;
&.#{$ns}-minimal.#{$ns}-intent-warning{
color: #cc7e25;
}
+ &.#{$ns}-minimal.#{$ns}-intent-primary{
+ color: #223fc5;
+
+ &:hover,
+ &:focus{
+ color: #223fc5;
+ background: rgba(34, 63, 197, 0.08);
+ }
+ }
&.button--blue-highlight {
background-color: #ebfaff;