mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 15:50:32 +00:00
fix: payment portal page
This commit is contained in:
@@ -209,7 +209,7 @@ class GetInvoicePaymentLinkTaxEntryTransformer extends SaleInvoiceTaxEntryTransf
|
|||||||
|
|
||||||
class GetInvoicePaymentLinkBrandingTemplate extends GetPdfTemplateTransformer {
|
class GetInvoicePaymentLinkBrandingTemplate extends GetPdfTemplateTransformer {
|
||||||
public includeAttributes = (): string[] => {
|
public includeAttributes = (): string[] => {
|
||||||
return ['companyLogoUri', 'primaryColor'];
|
return ['companyLogoUri', 'primaryColor', 'secondaryColor'];
|
||||||
};
|
};
|
||||||
|
|
||||||
public excludeAttributes = (): string[] => {
|
public excludeAttributes = (): string[] => {
|
||||||
@@ -219,4 +219,8 @@ class GetInvoicePaymentLinkBrandingTemplate extends GetPdfTemplateTransformer {
|
|||||||
primaryColor = (template) => {
|
primaryColor = (template) => {
|
||||||
return template.attributes?.primaryColor;
|
return template.attributes?.primaryColor;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
secondaryColor = (template) => {
|
||||||
|
return template.attributes?.secondaryColor;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ export function PaymentInvoicePreviewContent() {
|
|||||||
termsConditions={sharableLinkMeta?.termsConditions}
|
termsConditions={sharableLinkMeta?.termsConditions}
|
||||||
statement={sharableLinkMeta?.invoiceMessage}
|
statement={sharableLinkMeta?.invoiceMessage}
|
||||||
companyName={sharableLinkMeta?.companyName}
|
companyName={sharableLinkMeta?.companyName}
|
||||||
|
primaryColor={sharableLinkMeta?.brandingTemplate?.primaryColor}
|
||||||
|
secondaryColor={sharableLinkMeta?.brandingTemplate?.secondaryColor}
|
||||||
lines={sharableLinkMeta?.entries?.map((entry) => ({
|
lines={sharableLinkMeta?.entries?.map((entry) => ({
|
||||||
item: entry.itemName,
|
item: entry.itemName,
|
||||||
description: entry.description,
|
description: entry.description,
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export const useEditPdfTemplate = (
|
|||||||
>(
|
>(
|
||||||
({ templateId, values }) =>
|
({ templateId, values }) =>
|
||||||
apiRequest
|
apiRequest
|
||||||
.post(`/pdf-templates/${templateId}`, transfromToSnakeCase(values))
|
.put(`/pdf-templates/${templateId}`, transfromToSnakeCase(values))
|
||||||
.then((res) => res.data),
|
.then((res) => res.data),
|
||||||
{
|
{
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ body {
|
|||||||
.App {
|
.App {
|
||||||
min-width: 1100px;
|
min-width: 1100px;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-color: var(--color-app-background);
|
|
||||||
}
|
}
|
||||||
// =======
|
// =======
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ $ns: bp4;
|
|||||||
--color-ui-menu-select-item-active-background: var(--color-primary);
|
--color-ui-menu-select-item-active-background: var(--color-primary);
|
||||||
|
|
||||||
--color-app-body: #fff;
|
--color-app-body: #fff;
|
||||||
--color-app-background: #fff;
|
|
||||||
|
|
||||||
// Splash screen.
|
// Splash screen.
|
||||||
--color-splash-screen-background: #fff;
|
--color-splash-screen-background: #fff;
|
||||||
@@ -359,7 +358,6 @@ body.bp4-dark {
|
|||||||
|
|
||||||
// App
|
// App
|
||||||
--color-app-body: var(--color-dark-gray1);
|
--color-app-body: var(--color-dark-gray1);
|
||||||
--color-app-background: var(--color-dark-gray1);
|
|
||||||
|
|
||||||
// Splash screen.
|
// Splash screen.
|
||||||
--color-splash-screen-background: #fff;
|
--color-splash-screen-background: #fff;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
|
|
||||||
.bp4-button {
|
.bp4-button {
|
||||||
--color-button-color: #555;
|
--color-button-color: #555;
|
||||||
--color-button-color: var(--color-light-gray3);
|
|
||||||
|
|
||||||
|
.bp4-dark & {
|
||||||
|
--color-button-color: var(--color-light-gray3);
|
||||||
|
}
|
||||||
min-width: 32px;
|
min-width: 32px;
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
padding-left: 12px;
|
padding-left: 12px;
|
||||||
|
|||||||
Reference in New Issue
Block a user