fix: missing branding settings (#2800)

This commit is contained in:
Dhruwang Jariwala
2024-06-24 12:38:15 +05:30
committed by GitHub
parent 6c6061a123
commit 1ebddbd1de
2 changed files with 15 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ export const EditFormbricksBranding = ({
return (
<div className="w-full items-center space-y-4">
<div className="mb-4 flex items-center space-x-2">
<div className="flex items-center space-x-2">
<Switch
id={`branding-${type}`}
checked={isBrandingEnabled}

View File

@@ -81,24 +81,26 @@ const Page = async ({ params }: { params: { environmentId: string } }) => {
<EditPlacementForm product={product} environmentId={params.environmentId} />
</SettingsCard>
)}
{currentProductChannel !== "link" && (
<SettingsCard
title="Formbricks Branding"
description="We love your support but understand if you toggle it off.">
<SettingsCard
title="Formbricks Branding"
description="We love your support but understand if you toggle it off.">
<div className="space-y-4">
<EditFormbricksBranding
type="linkSurvey"
product={product}
canRemoveBranding={canRemoveLinkBranding}
environmentId={params.environmentId}
/>
<EditFormbricksBranding
type="inAppSurvey"
product={product}
canRemoveBranding={canRemoveInAppBranding}
environmentId={params.environmentId}
/>
</SettingsCard>
)}
{currentProductChannel !== "link" && (
<EditFormbricksBranding
type="inAppSurvey"
product={product}
canRemoveBranding={canRemoveInAppBranding}
environmentId={params.environmentId}
/>
)}
</div>
</SettingsCard>
</PageContentWrapper>
);
};