mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
Merge pull request #747 from bigcapitalhq/fix-template-company-logo
fix: company logo of the template
This commit is contained in:
@@ -48,6 +48,7 @@ export const useBrandingTemplateFormInitialValues = <
|
|||||||
|
|
||||||
const brandingAttributes = {
|
const brandingAttributes = {
|
||||||
templateName: pdfTemplate?.templateName,
|
templateName: pdfTemplate?.templateName,
|
||||||
|
companyLogoUri: pdfTemplate?.companyLogoUri,
|
||||||
...pdfTemplate?.attributes,
|
...pdfTemplate?.attributes,
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
@@ -56,14 +57,16 @@ export const useBrandingTemplateFormInitialValues = <
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export const useBrandingState = (state?: Partial<BrandingState>): BrandingState => {
|
export const useBrandingState = (
|
||||||
|
state?: Partial<BrandingState>,
|
||||||
|
): BrandingState => {
|
||||||
const { brandingTemplateState } = useBrandingTemplateBoot();
|
const { brandingTemplateState } = useBrandingTemplateBoot();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...brandingTemplateState,
|
...brandingTemplateState,
|
||||||
...state
|
...state,
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
export const getCustomizeDrawerNameFromResource = (resource: string) => {
|
export const getCustomizeDrawerNameFromResource = (resource: string) => {
|
||||||
const pairs = {
|
const pairs = {
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export interface GetPdfTemplateValues {}
|
|||||||
|
|
||||||
export interface GetPdfTemplateResponse {
|
export interface GetPdfTemplateResponse {
|
||||||
templateName: string;
|
templateName: string;
|
||||||
|
companyLogoUri?: string | null;
|
||||||
attributes: Record<string, any>;
|
attributes: Record<string, any>;
|
||||||
predefined: boolean;
|
predefined: boolean;
|
||||||
default: boolean;
|
default: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user