mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 01:32:06 +10:00
feat: show branding logo on signing page
This commit is contained in:
@ -160,6 +160,14 @@ export const DocumentSigningPageView = ({
|
|||||||
return (
|
return (
|
||||||
<DocumentSigningRecipientProvider recipient={recipient} targetSigner={targetSigner}>
|
<DocumentSigningRecipientProvider recipient={recipient} targetSigner={targetSigner}>
|
||||||
<div className="mx-auto w-full max-w-screen-xl sm:px-6">
|
<div className="mx-auto w-full max-w-screen-xl sm:px-6">
|
||||||
|
{document.team.teamGlobalSettings.brandingEnabled &&
|
||||||
|
document.team.teamGlobalSettings.brandingLogo && (
|
||||||
|
<img
|
||||||
|
src={`/api/branding/logo/team/${document.teamId}`}
|
||||||
|
alt={`${document.team.name}'s Logo`}
|
||||||
|
className="mb-4 h-12 w-12 md:mb-2"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<h1
|
<h1
|
||||||
className="block max-w-[20rem] truncate text-2xl font-semibold sm:mt-4 md:max-w-[30rem] md:text-3xl"
|
className="block max-w-[20rem] truncate text-2xl font-semibold sm:mt-4 md:max-w-[30rem] md:text-3xl"
|
||||||
title={document.title}
|
title={document.title}
|
||||||
|
|||||||
@ -91,6 +91,12 @@ export const getDocumentAndSenderByToken = async ({
|
|||||||
select: {
|
select: {
|
||||||
name: true,
|
name: true,
|
||||||
teamEmail: true,
|
teamEmail: true,
|
||||||
|
teamGlobalSettings: {
|
||||||
|
select: {
|
||||||
|
brandingEnabled: true,
|
||||||
|
brandingLogo: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user