mirror of
https://github.com/documenso/documenso.git
synced 2025-11-25 06:01:35 +10:00
fix: update branding logic (#2238)
Update branding logic to ensure company details are displayed only when branding is enabled
This commit is contained in:
@ -23,7 +23,7 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
|
|||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{branding.brandingCompanyDetails ? (
|
{branding.brandingEnabled && branding.brandingCompanyDetails && (
|
||||||
<Text className="my-8 text-sm text-slate-400">
|
<Text className="my-8 text-sm text-slate-400">
|
||||||
{branding.brandingCompanyDetails.split('\n').map((line, idx) => {
|
{branding.brandingCompanyDetails.split('\n').map((line, idx) => {
|
||||||
return (
|
return (
|
||||||
@ -34,7 +34,9 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</Text>
|
</Text>
|
||||||
) : (
|
)}
|
||||||
|
|
||||||
|
{!branding.brandingEnabled && (
|
||||||
<Text className="my-8 text-sm text-slate-400">
|
<Text className="my-8 text-sm text-slate-400">
|
||||||
Documenso, Inc.
|
Documenso, Inc.
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
Reference in New Issue
Block a user