diff --git a/apps/web/app/s/[surveyId]/components/LinkSurvey.tsx b/apps/web/app/s/[surveyId]/components/LinkSurvey.tsx index afcec5c314..fc7215dcf3 100644 --- a/apps/web/app/s/[surveyId]/components/LinkSurvey.tsx +++ b/apps/web/app/s/[surveyId]/components/LinkSurvey.tsx @@ -226,7 +226,8 @@ export const LinkSurvey = ({ webAppUrl={webAppUrl} IS_FORMBRICKS_CLOUD={IS_FORMBRICKS_CLOUD} IMPRINT_URL={IMPRINT_URL} - PRIVACY_URL={PRIVACY_URL}> + PRIVACY_URL={PRIVACY_URL} + isBrandingEnabled={project.linkSurveyBranding}> { //for embedded survey strip away all surrounding css const [isBackgroundLoaded, setIsBackgroundLoaded] = useState(false); @@ -52,14 +54,18 @@ export const LinkSurveyWrapper = ({ styling.cardArrangement?.linkSurveys === "straight" && "pt-6", styling.cardArrangement?.linkSurveys === "casual" && "px-6 py-10" )}> - + {children} ); else return (
- +
{!styling.isLogoHidden && project.logo?.url && } diff --git a/apps/web/app/s/[surveyId]/components/SurveyLoadingAnimation.tsx b/apps/web/app/s/[surveyId]/components/SurveyLoadingAnimation.tsx index 106ac573f2..addd1cb032 100644 --- a/apps/web/app/s/[surveyId]/components/SurveyLoadingAnimation.tsx +++ b/apps/web/app/s/[surveyId]/components/SurveyLoadingAnimation.tsx @@ -8,11 +8,13 @@ import { TSurvey } from "@formbricks/types/surveys/types"; interface SurveyLoadingAnimationProps { survey: TSurvey; isBackgroundLoaded?: boolean; + isBrandingEnabled: boolean; } export const SurveyLoadingAnimation = ({ survey, isBackgroundLoaded = true, + isBrandingEnabled, }: SurveyLoadingAnimationProps) => { const [isHidden, setIsHidden] = useState(false); const [minTimePassed, setMinTimePassed] = useState(false); @@ -118,7 +120,9 @@ export const SurveyLoadingAnimation = ({ "flex flex-col items-center space-y-4", isReadyToTransition ? "animate-surveyExit" : "animate-surveyLoading" )}> - Logo + {isBrandingEnabled && ( + Logo + )}