Skip to content

Commit ae9e32a

Browse files
chesterkmralonp99
andauthored
feat: added conditional powered by logo (#2803)
Co-authored-by: Alon Peretz <[email protected]>
1 parent 64c4350 commit ae9e32a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

apps/kyb-app/src/common/types/settings.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ export interface ITheme {
22
logo?: string;
33
palette: Record<string, { color: string; foreground: string }>;
44
elements: Record<string, string | Record<string, string>>;
5+
ui?: {
6+
poweredBy?: boolean;
7+
};
58
}
69

710
export interface ISettings {

apps/kyb-app/src/pages/CollectionFlow/CollectionFlow.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,16 +219,20 @@ export const CollectionFlow = withSessionProtected(() => {
219219
</div>
220220
<div>
221221
{customer?.displayName && (
222-
<div className="border-b pb-12">
222+
<div>
223223
{
224224
t('contact', {
225225
companyName: customer.displayName,
226226
}) as string
227227
}
228228
</div>
229229
)}
230-
{/* <img src={'/poweredby.svg'} className="mt-6" /> */}
231-
<PoweredByLogo className="mt-8" sidebarRootId="sidebar" />
230+
{themeDefinition.ui?.poweredBy !== false && (
231+
<div className="flex flex-col">
232+
<div className="pb-12 border-b" />
233+
<PoweredByLogo className="mt-8" sidebarRootId="sidebar" />
234+
</div>
235+
)}
232236
</div>
233237
</div>
234238
</div>

0 commit comments

Comments
 (0)